Re: Pass locatioin to Secondary Form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Joe,

Rereading my comment to you I see some lack of clarity - I did mean
that I am going to avoid the globals and already have recoded a couple
of older programs I wrote for myself using "properties" (fields) in a
class and dumped the module.

Thanks again, Ed

"Joe Cool" <joecool@xxxxxxxx> wrote in message
news:4sq554dbvmrm6gj97utg8c6lestna8fjih@xxxxxxxxxx
On Fri, 13 Jun 2008 07:03:03 -0400, "Ed Bitzer" <edbitzer@xxxxxxxxx>
wrote:

Thanks Joe... this lets me concentrate on me using added classes to
avoid my historical use of globals and modules and maybe learn to
use
them more often.

If you ever expect to move to C#.NET, you will be forced to give up
on
global variables.


"Joe Cool" <joecool@xxxxxxxx> wrote in message
news:t17354hjjt66hmg1hhohrthsma75bhnc2l@xxxxxxxxxx
On Thu, 12 Jun 2008 17:11:36 -0400, "Ed Bitzer"
<edbitzer@xxxxxxxxx>
wrote:

Appreciate some direction as to what most of you professionals do
when
passing some limited variables to another form. A simple example
would be passing the location of a second form. I could use a
constructor which I think of as parameters attached to the
creation
of
my New form (parameters) or I could use "properties" as I have
learned
to use with classes. Some advice please.

My personal preference is to use properties in the secondary form
to
pass data to it from the calling form.



.



Relevant Pages

  • Re: Pass locatioin to Secondary Form
    ... avoid my historical use of globals and modules and maybe learn to use ... passing some limited variables to another form. ... would be passing the location of a second form. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Allocation of a multidimensional array of structures
    ... so I've tried debugging my program ... Or to turn the question around, why should I use that prototyping ... just good practice and helps avoid undefined behavior. ... Well, while I'm aware that it's better to avoid using globals, it's ...
    (comp.lang.c)
  • Re: Pass locatioin to Secondary Form
    ... avoid my historical use of globals and modules and maybe learn to use ... global variables. ... passing some limited variables to another form. ... would be passing the location of a second form. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Allocation of a multidimensional array of structures
    ... multidimensional array allocation code: ... In case you're refering to writing void lut_alloc; ... Well, while I'm aware that it's better to avoid using globals, it's ...
    (comp.lang.c)
  • Re: Permanently "global" ?
    ... it's best to avoid using variables ... You can't create your own super globals. ... It's called $glb. ... > I'm using google to post messages, so that I can avoid their damn ...
    (comp.lang.php)