المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : .LastIndexOf("%")



C# Programming
06-23-2009, 10:30 PM
Hey getting an exception with the following code

string Percentage = LastLine.Substring(LastLine.LastIndexOf("%") - 2, 2);

the string is a log , Im trying to get the two characters before % but the above code crashes the debugger