Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type function
Message
From
28/04/2004 22:59:39
 
 
To
28/04/2004 21:55:41
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00899185
Message ID:
00899197
Views:
11
>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 .
Previous
Reply
Map
View

Click here to load this message in the networking platform