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"
>y = alltrim(x)
>? len(y)
>
>
>
>>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--