Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cool idea for SET commands
Message
From
27/07/2004 12:38:25
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00928029
Message ID:
00928363
Views:
33
Hi Kevin

>But honestly, you could get away with not using the LOCAL. The variable will still
>drop out of scope. Not appropriate, IMHO, but it would work.

Not necessarily. A variable is private by default. If it was declared in a calling method, it would not go out of scope upon exiting the called routine and your settings would not be reset.

>Seems to me your coming up with fuzzy reasons to knock this method. If it doesn't work
>for you, so be it. But I get cleaner code with one line instead of the multiple lines
>needed to Set & Reset SET statements.

I didn't see David's responses as knocking your method. In fact using his methods in combination with yours seems like the best solution.
Previous
Reply
Map
View

Click here to load this message in the networking platform