Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the secret meaning of this piece of code?
Message
From
03/08/1997 00:55:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00042899
Message ID:
00042963
Views:
43
>>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.

In the same time, I'm sure nobody can complain of this big waste since nobody can notice it... :) Just joking!

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform