Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on strings
Message
De
24/01/2005 12:58:23
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00980086
Message ID:
00980089
Vues:
33
Gerard,

.NET string types have Substring methods. Integer types have .ToString() methods.

~~Bonnie



>Another question on manipulating strings.
>I have a numeric field (N 10) and I want to take the last 5 characters
> and include it in a field with other text.
>
>e.g.
>MyNewNum = "ABC" + Substr(str(MyNum),6,5) + 'XYZ'
>to end up as : ABC00035XYZ (The 00035 is left zeroed MyNum)
>
>How would this be done in c sharp.
>
>Thanks in advance for any help.
>
>Gerard
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform