Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where could be this index tag?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01541550
Message ID:
01541568
Vues:
45
This message has been marked as a message which has helped to the initial question of the thread.
>On a related subject, do you think the following code is the best way (programatically) check if a CDX has a certain index tag:
>
>
>Function TagFound
>lparameter cTagName
>local lRetVal
>lRetVal = .F.
>FOR nCount = 1 TO TAGCOUNT()
>   if tag(nCount) == cTagName
>      lRetVal = .T.
>      exit
>   endif 
>ENDFOR
>return lRetVal
>
You can use TAGNO function.

IF TAGNO('MyTagName') > 0 , tag exists.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform