Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
strange tag name problem in VFP
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
strange tag name problem in VFP
Divers
Thread ID:
00001117
Message ID:
00001117
Vues:
126
I have come across a strange problem in VFP. I dont know if
I am not understanding something or doing something wrong.

I have created an some index tags as follows:

Name of tag .... Name of Field Indexed
-----------------------------------------
CUSTNUM Custnum
NAME Name
START Start_date

Because I use the same name for the first two index tags
as the name of the fields, there was no problem.

But when I tried to use the 3rd tag, there was an error.

SET ORDER TO TAG CUSTNUM &&works fine
SET ORDER TO TAG NAME &&works fine
SET ORDER TO TAG START &&Error. so such index tag
SET ORDER TO TAG Start_Date &&different error. doesnt like the _

Then I tried something.
I changed the tag name CUSTNUM to CUSTOMER

SET ORDER TO TAG CUSTOMER &&Error no such tag
SET ORDER TO TAG CUSTNUM &&works fine

So after some more playing about I found out that
it doesnt matter what I name that tag, I always have
to use the field name to use the tag. Also, the underscore
isnt allowed in the SET ORDER command, but I am allowed to
use it in the VFP table editor.

Anyways.. can someone point out the cause for the problem?

Thanks

-Matt
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform