Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the secret meaning of this piece of code?
Message
 
To
02/08/1997 13:48:09
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00042899
Message ID:
00042961
Views:
40
>Yes, so that clears it.. Pls read the code carefully...
>
>>>>parameter Cmd_Param
>>>>
>>>>if type("Cmd_Param") = "C"
>
>here it is checking any char. parameter passed it to it
>>>> TempVar = Cmd_Param
>
>Preserving the value in a temporary variable..
>
>>>> release Cmd_Param
>Relasing the Original Variable
>>>> private Cmd_Param
>& again declaring it..
>>>> Cmd_Param = TempVar
>>>>endif
>>
>& finally assigning the passed parameter which was saved in a temporarily variable..
Vinod,

Which is, in fact, a waste of cpu cycles since PARAMETERS are private by default.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform