Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STR() not lining up.
Message
From
30/10/1997 11:53:49
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00057413
Message ID:
00057422
Views:
28
>Ignore the example below. I spaced it out nice but the SPACES were removed when posted.
>
>>I am DEFINEing a POPUP based on STR(Projnum,3)+" "+Projdesc. The Projnum's are not right-justified together making the list look sloppy.
>>
>>ie. 3 Desc1 should look like 3 Desc1
>> 13 Desc2 13 Desc2
>> 123 Desc3 123 Desc3
>>
>>How do I correct this?

When ever you convert a numeric to a character by using STR() you should ALLTRIM() the results. Otherwise you will get spaces in your result.

-Ed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform