Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trivial question re return value and ()
Message
De
19/05/2016 13:11:37
 
 
À
19/05/2016 10:33:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01636581
Message ID:
01636634
Vues:
66
>>As Mike said, the only time parentheses change what happens is when VFP expects a name. Then, the contents of the parentheses are treated as a name:
>
>isolating/forcing a parameter out of passing by reference into value when calling as a procedure
>
>
>uoh = 2
>Do AreYouCertain with (m.uoh)
>? m.uoh 
>
>vs.
>
>Do AreYouCertain with m.uoh
>? m.uoh 
>
>function AreYouCertain  tnuoh
>tnuoh = m.tnuoh * m.tnuoh
>? m.tnuoh 
>return
>
>
>;-))

Good catch. Forgot about that one.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform