Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the secret meaning of this piece of code?
Message
 
À
02/08/1997 13:48:09
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00042899
Message ID:
00042961
Vues:
42
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform