Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variations of using -'-'- (joining text fields)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00457664
Message ID:
00457841
Vues:
26
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform