Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variations of using -'-'- (joining text fields)
Message
From
29/12/2000 12:59:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/12/2000 12:34:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457664
Message ID:
00457860
Views:
27
>>>
>>>That's because "-" trims trailing spaces. Try
>>
>>Is this correct? I thought "-" moved the spaces to the end rather than trimming them.
>>
>>
>>
>>>
>>>lastName - ", " + firstName (or RTRIM(firstName))
>>>
>>
>>If LastName has trailing blanks I got
>>LLLLLL, FFFFFF
>
>I'm virtually ignorant of HTML and didn't realize the extra blanks would get trimmed out of my reply. It should have been
>
>LLLLLL,BBBBBBFFFFFF
>
>where "B" represents a blank

Frankly, the real solution would be lastName - (", " + firstName) - simply because in the first example it moved only the comma and its accompanying space to the location of the first trailing space in the last name. With the parentheses, the whole expression gets moved to the end.

The spaces are not trimmed - just moved to the end.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform