Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
News: VFP support dynamic parameters names
Message
 
 
To
15/06/2005 09:41:37
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01023471
Message ID:
01023478
Views:
14
Looks like a good way to make code unredable.

>
>CLEAR
>
>PUBLIC anotherVariable
>var1 = 'anotherVariable'
>anotherVariable = 1
>
>? procName(var1)
>? anotherVariable
>
>PROCEDURE procName
>LPARAMETERS parName,(m.parName)	&& this is a dynamic parameter renaming
>? m.parName,anotherVariable     && this hide the PUBLIC anotherVariable
>
>anotherVariable = 2	&& this write 2 into a local variable
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform