Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is wrong with my code?
Message
 
 
À
03/02/2003 09:57:40
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00748355
Message ID:
00748364
Vues:
20
>But wouldn't the alltrim prevent that form happening?

Alltrims on fields in indexes don't do exactly what you think. If you apply an alltrim() to a field in an index expression, VFP trims it then pads it. It has done this since VFP 7 (maybe earlier, not sure). If you want the follwoing behavior:
"IDID2         "
then you need use the - operator in the key expression.
FIELD1-FIELD2
Field1 wll be trimmed with Field2 immediately following it.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform