Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What to use instead of Tag()
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01309311
Message ID:
01309318
Vues:
6
>I have a segment of code that before calling SEEK() it checks if the current index tag is of character type. So what I do is the following:
>
>
>if type(tag()) = "C"
>   SEEK("something")
>endif
>
>
>An issue I ran into is when the index key is something like
>UPPER(SUBSTR(myfield,1,20)), the type(tag()) returns "U". I can change the code above to check that the Type(tag()) is not "L" or "N" and then call SEEK(). But I am thinking that perhaps there is a better approach.
>
>If you can suggest something alternative, I would appreciate it.

Not entirely sure I got the question, but look at EVALUATE() function.

BTW, I don't think it's TAG() function to get the index expression. I forgot right now which one, something about KEY(), AFAIK.
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