Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if an index tag already exist in a CDX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00145580
Message ID:
00145598
Vues:
38
>>Is there a way to programmatically determine whether an index tag for a table exists?
>>
>>I've got an app in production and we have an upgrade to the software, on that requires an existing table have an additional index added to it -- a regular index.
>>
>>I have a startup routine that already checks to make sure needed tables are where they should be so I was thinking of modifying the startup routine so it checks to see if the index tag for the table in question already exists in the table's CDX. If not, then I'll create it programmatically, otherwise, do nothing. I can't find a FoxPro function that already does something like that.
>>
>>Any or suggestions ideas?
>
>select mytable
>cTagname="mytag"
>if empty(tagno(cTagname))
>=messagebox("Invalid Tag!")
>endif

Ed, for a one-time solution to a problem tagno() will work, but I would hesitate to add a function to my application when the HELP says it is included 'For compatibility with dBase'

Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform