Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for index
Message
De
15/02/2008 17:44:53
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01292953
Message ID:
01293108
Vues:
21
>>>>What was the command again, to check whether an index tag exists? TRY-CATCH does seem a little awkward...
>>>>
>>>
>>>SELECT mytable
>>>? TAGNO(lcTagName) <> 0
>>>* or
>>>? TAGNO(lcTagName, "",lcAlias) <> 0
>>>
>>
>>Oh, right, thanks, that was it. I thought it was one of the commands included for compatibility - and this one is marked for "compatibility with dBASE".
>
>Still works, but you can also go with ascan and ataginfo. Though it would be an OVERKILL :)

I guess that program(), tagno(), tagc(), key() and other functions now internally call those two and just discard the arrays. So I think that these leftovers are the overkill... but then, do we care? We've always had duplicate names for functions. Any sys() call that was later named as a separate function still exists as a sys() call, doesn't it? Which is all fine - old code still works, now is more readable.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform