Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if variable or field
Message
From
11/04/2008 08:49:17
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01309758
Message ID:
01309914
Views:
8
>>I like TYPE() or FIELD() with the alias:
>>
>>TYPE('myalias.myfield')
>>or
>>FIELD('myfield','myalias')
>
>This is the most robust idea I have seen in the thread. There is always the possibility that it is both a field and a memvar.

Absolutely. All the possible ways to do something should be examined, although maybe not as thorougly as this was ;). But then, there should be one safe, fast, robust way and that should be a standard practice.
Previous
Reply
Map
View

Click here to load this message in the networking platform