>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