Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field exist?
Message
De
30/10/2001 12:01:50
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
 
 
À
26/10/2001 14:53:08
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00573872
Message ID:
00575152
Vues:
19
This message has been marked as a message which has helped to the initial question of the thread.
Hi Pete,

Here's another solution, the FSIZE() function. It works well on field types I normally use, i.e. character, date, numeric, and logical. I have NOT tested it on certain field types such as general but I suspect it works there too.

Example:
  llFieldExists = fsize( "SomeField" , "SomeAlias" ) > 0

OR, if the alias is already selected:

  llFieldExists = fsize( "SomeField" ) > 0
BTW it executes faster than TYPE() should that be a factor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform