Information générale
Catégorie:
Codage, syntaxe et commandes
>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.
Simple and elegant. Thanks for showing me the improvement.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement