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.comwww.prenia.comWeblog: blogs.prenia.com/cathi