Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADD and DROP Columns in a free table
Message
De
14/08/2003 08:26:07
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00819961
Message ID:
00820080
Vues:
28
>>Using ALTER TABLE I know, but if the table is not in a database how do I check if the column exists before I DROP or ADD it? In a database I would use INDBC() but not sure how to do the same on free tables. Thanks!
>>
>Hi Renoir,
>
>The TYPE() function can help you
IF TYPE("mytable.myfield") <> "U"
>  * Filed exists
>ELSE
>...
>ENDIF
Sergey,

As usual that was exactly what I was looking for. I wasn't aware I could use it that way. I've always used it primarily with variables or the values of a field in a record.

Thanks! Renoir
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform