Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate column
Message
De
02/11/2009 09:56:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/11/2009 09:46:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01432689
Message ID:
01432702
Vues:
94
This message has been marked as the solution to the initial question of the thread.
>Hi
>I need help to understand the 'Evaluate' function....

The "Evaluate" function will replace a text, representing an expression, with the evaluated version of the expression.

Here is a simple example:
x = "y"
y = 5
? x && shows the text, "y"
? evaluate(x) && Shows the valua of variable y - that is, 5.
I find this very useful, for example, to create my own generic lookup function. The name of the field whose value must be returned after a SEEK(), are passed as one of the parameters. Instead of a single field, I can also use a more complicated expression, for example, concatenate two fields.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform