Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Anomaly
Message
 
 
To
06/08/2004 16:19:08
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00931316
Message ID:
00931445
Views:
32
Steve,

In VFP8 and earlier, the ALLTRIM() removes spaces only. In VFP9 you will be able to specify what characters to remove.
? alltrim(x, SPACE(1),CHR(13),CHR(10)),"you"
>I've never seen alltrim() get rid of trailing carriage returns...and can't get it to in VFP8.
>
>In command window:
>
>x = "hey"+chr(13)+chr(10)+chr(13)+chr(10)
>? alltrim(x),"you"    && you will be a few lines below "hey"
>y = alltrim(x)
>? len(y)              && shows 7
>
>
>
>>Yes, that's what I'm saying.
>>
>>>Craig,
>>>
>>>Are you saying that alltrim() gets rid of trailing carriage returns?
>>>
>>>>Yup. Was anything acutally printed on the second page or was it just blank?
>>>>
>>>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform