Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trivial question re return value and ()
Message
De
19/05/2016 08:10:20
 
 
À
18/05/2016 14:01:46
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:
01636613
Vues:
84
>it seem to me that making a variable between () evaluate this expression and return the evaluated expression.
>Whenever possible, using EVALUATE( ) or a name expression to replace macro substitution using the & Command.
> EVALUATE and name expressions execute faster than macro substitution.
>
>usefull,Merci madame !

RETURN always evaluates the expression that follows:
RETURN m.x + m.y
is no different than
RETURN (m.x + m.y)
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:
USE Table
tries to open a table named Table.
USE (Table)
tries to open a table whose name is contained in Table.

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

Click here to load this message in the networking platform