Yes, I am getting this error, Error CS0117: 'string' does not contain a definition for 'Chars'. I'm at a loss here... anyone know what I'm missing here??? (it's C#)
using System;
using System.Data;
using System.Data.OleDb;
public class classEditContact : System.Web.UI.Page {
string checkEscapeChars(string strInput) {
for (int x=0; x < (strInput.Length - 1); x++) {
if (strInput.Chars[x] == "'" {
strInput.Insert(x, "'"
}
}
return strInput;
}
}
If anyone can help me out here, it'd be much appreciated, cuz I'm kind of tearin' my hair out here...
Dust
using System;
using System.Data;
using System.Data.OleDb;
public class classEditContact : System.Web.UI.Page {
string checkEscapeChars(string strInput) {
for (int x=0; x < (strInput.Length - 1); x++) {
if (strInput.Chars[x] == "'" {
strInput.Insert(x, "'"
}
}
return strInput;
}
}
If anyone can help me out here, it'd be much appreciated, cuz I'm kind of tearin' my hair out here...
Dust