Re: which is more efficient?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri, 7 Mar 2003 05:37:50 -0600, Judith Evans <camping at txcyber.com>
wrote:

Just my thoughts; I hope you get several; pick & choose the best;)

>I have to change text on many controls on more than one window.
OK, done that by hand many times..
> I know when
>I need to make the text change in another window, WindowN.
Lets clarify; not the code you write to make the IDE but the code the
IDE generates is the issue here? (latter assumed)
> Which is the
>better approach: to have global ids and use setText() as needed from a
>routine in WindowN or ids not global but have a global routine in each
>affected window that does the setText() which are referenced from =
WindowN?
Clearly the *ONLY* problem with too many globals is the cluttering of
the global namespace; accidentally re-using, clashes with 3rd party
include files, etc. But I assume all these global names are strictly
under your control. Replacing <var> with <proc> just adds code?
So I would suggest sticking with global vars, unless you have a scheme
to reduce the number of globals needing to have a name, somehow...

>Also=20
<snip>; sorry, no idea.

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu