SyntaxFix
Write A Post
Hire A Developer
Questions
use indexOf() function
indexOf()
string s = "Error description, code : -1"; int index = s.indexOf("code"); if(index != -1) { //DO YOUR LOGIC string errorCode = s.Substring(index+4); }