Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Columns
Message
 
 
À
28/10/2002 15:22:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00716154
Message ID:
00716178
Vues:
16
You can check if field exists in the table with one-liner.
FldExist = (TYPE("MyTable.mycol") <> "U")
>
>FldsCnt = AFIELDS (aFlds, "MyTable")
>FldExist = .F.
>
>FOR I = 1 TO FldsCnt
>   IF aFlds [I, 1] == "MYCOL"
>      FldExist = .T.
>      EXIT
>   ENDIF
>ENDFOR
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform