Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the secret meaning of this piece of code?
Message
De
03/08/1997 00:55:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00042899
Message ID:
00042963
Vues:
41
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform