Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Substr() in C#
Message
De
24/06/2002 14:10:41
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00671738
Message ID:
00671778
Vues:
13
Great! Thanks.


>Have you checked out the Visual FoxPro Toolkit for .NET at
>
>http://www.gotdotnet.com/team/vfp/
>
>If you are used to the syntax in VFP then the help file for the toolkit can show you how to replicate the same functionality in .NET. There are code examples in both VB.NET and C#.
>
>Left:
>MyString.Substring(0, nDigits);
>
>Right:
>MyString.Substring(cExpression.Length - nDigits);
>
>SubStr:
>// The substring function is 0 based
>MyString.Substring(nStartPosition-1,nLength);
>
>Length:
>MyString.Length;
>
>
>>How can I get string information in C#?
>>
>>Such as:
>>-Left or Right number of character of string?
>>-Substr of a string?
>>-Length of a string?
>>
>>Thanks,
>>
>>Jerryt
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform