Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variations of using -'-'- (joining text fields)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457664
Message ID:
00457853
Views:
25
>
>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


>or, to be more elaborate,
>
>ALLTRIM(lastName) + ", " + ALLTRIM(firstName)

This looks like the best bet
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform