Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for field name in table
Message
 
 
To
20/01/2011 14:20:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01496634
Message ID:
01496739
Views:
49
>(1) The first block of code you suggested will always fail because you are trying to look for the field name within the name of the file (not in the list of field names)'
>
>(2) The second block of code was not from me, but the problem is that it should say
>
>IF TYPE(ALIAS() + '.' + thh05) = "U" 
>
>
>(3) It's not clear that you have tried my suggestion, using Field().
>
>
It should be
IF TYPE (alias() + '. thh05') = 'U'
   && Field does not exist
ELSE
  && Field does exist and you can rename
ENDIF
Note the '' in the TYPE check.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform