Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to check variable type
Message
From
15/02/2001 14:30:07
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00476059
Message ID:
00476426
Views:
24
That requires knowledge ofthe tablename. What if you have 50 tables open?
If you test
if type('m.field')="U" and type('field')<>'U'
it must be as table field
endif




Peter



>>Is there a quick function to check if a variable is a field from a table or a memory variable ?
>>
>>
>>Thanks in advance.
>
>
>IF TYPE('table.field')<>"U"
>  *
>  * It's a table field
>  *
>ELSE
>  IF TYPE('field')<>"U"
>    *
>    * it's a memvar
>    *
>  ELSE
>    *
>    * no such animal exists
>    *
>  ENDIF
>ENDIF
>
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform