Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if variable or field
Message
From
10/04/2008 14:15:51
 
 
To
10/04/2008 13:51:58
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01309758
Message ID:
01309763
Views:
8
This message has been marked as the solution to the initial question of the thread.
>There is a variable or field:
>
>
>m.NewValue = MyUnknownVariableOrField
>
>
>How can I tell if MyUnknownVariableOrField is a variable or a field?

Add a m., and use vartype().
If vartype(yourunknown)#'U' and vartype(m.yourunknown)='U'
*  yourunknown is a field
else
*  yourunknown is a memvar
Endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform