Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where could be this index tag?
Message
 
 
To
15/04/2012 12:07:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01541550
Message ID:
01541568
Views:
44
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform