Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PadRight
Message
De
05/12/2008 09:41:56
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
PadRight
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01365649
Message ID:
01365649
Vues:
60
I need to get the first 10 characters from a string. If the string is less than 10, I want to pad it to the right with spaces. If the string is over 10, I want to chop off everything pass position 10.

How can I do this?
Example:
"Joe.Smith"     // I need 1 space added to the end. 'Joe.Smith '
"Steve.Smith"  // I need 'Steve.Smit'
Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform