Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Substr() in C#
Message
From
24/06/2002 14:10:41
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00671738
Message ID:
00671778
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform