Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for field name in table
Message
 
 
À
20/01/2011 14:20:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01496634
Message ID:
01496739
Vues:
50
>(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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform