Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Substr() in C#
Message
 
À
24/06/2002 13:17:42
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:
00671759
Vues:
14
This message has been marked as the solution to the initial question of the thread.
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
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform