Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of macro substitution vs. string valued variables
Message
From
22/07/1999 16:27:08
 
 
To
22/07/1999 13:08:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244254
Message ID:
00244978
Views:
17
>One point I might add is to try to avoid macros if at all possible since I think they pollute memory. Your first example could be written:
>
>IF UPPER(myOffOnStringVariable) = "ON"
> SET EXCLUSIVE ON
>ELSE
> SET EXCLUSIVE OFF
>ENDIF
>
>Which will run more effeciently.

Gosh David,

I thought that with the advent of structured programming and OOP worrying about memory pollution was passe (well...at least in the halls of MS land)...hell, memory's cheap...<g>
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform