Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is CHARINDEX equivalent in C#?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01465445
Message ID:
01465450
Views:
66
This message has been marked as the solution to the initial question of the thread.
string str = "abcdefghijk";
int idx;

Console.WriteLine("str: " + str);

idx = str.LastIndexOf('h');
Console.WriteLine("Index of last 'h': " + idx);
Previous
Reply
Map
View

Click here to load this message in the networking platform