Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type function
Message
De
28/04/2004 22:59:39
 
 
À
28/04/2004 21:55:41
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00899185
Message ID:
00899197
Vues:
10
>TableField = "Table.Field"
>?type("TableField")
>
>The type of the "TableField" may be a date, an integer or whatever but he type function will always return "C".
>
>How can I get the data type of a table field whose name is in a variable?

John - use a name expression.
lcVarName = eval(Table.Field) && got the value
? type("lcVarName") && gimme the type of the value.

but ? eval is overkill in some cases .
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform