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 11:46:36
 
 
À
03/08/1997 09:59:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00042899
Message ID:
00042986
Vues:
34
>A few lines about this discussion. It's not true that the code does nothing. It releases a variable that may be declared local or public elsewhere.

Params are PRIVATE in FoxPro. It means that if you RELEASE a parameter variable, this is released locally, regardless if the same variable exists on a higher level. So, it doesn't make any difference if this is the main ptogram or a called one.

BTW, Barbara solved the "mistery": the programmer came from Clipper and in Clipper params are LOCAL and not PRIVATE.

>Also you say it's at the beginning of a main program. But every main program could be a procedure for another main program that you forgot that you used before. So it makes it a lower call. Think of this scenario :
>* Anothermain.prg
>Cmd_param = doacheck()
>do main.prg with Cmd_param
>if type("cmd_param") = "U" && Released ?
> ........
>endif
>
>* This type of code also strange could be used in copy protection.
>Cetin

How can it be used? I don't see it. :(

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform