|
-
Jun 18th, 2003, 01:32 PM
#18
Fanatic Member
Re: Re: Re: Re: Globals
Originally posted by RudyL
I can see your point about object oriented programming, but if all you need is the variable, then why create the object?
B/c the variable only exists within, and b/c of, the (form) object - it's unnecessary outside of it. To use your memory example from before, why allocate storage space for the lifetime of a project (a global) when it's (the variable) only needed in two froms which always talk to one another (i.e, form2 only exists b/c form1 called it)? For the same reaon we don't dim longs when we only need a byte, or don't declare everything as variants.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|