Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong with my code?
Message
 
 
To
03/02/2003 09:57:40
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00748355
Message ID:
00748364
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform