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:
00457841
Views:
23
>I know how to join two string fields using -'-'-
>
>Is there a similar sequence for joining two fields with a single space instead of a dash, or a comma and a space?
>
>Example: mike bollinger or bollinger, mike
>
>I tried lastname-', '-firstname BUT it displayed bollinger,mike (no space)

That's because "-" trims trailing spaces. Try

lastName - ", " + firstName (or RTRIM(firstName))

or, to be more elaborate,

ALLTRIM(lastName) + ", " + ALLTRIM(firstName)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform