I'm hoping this is easy for someone else because it is giving me some trouble and I'm having a freeze and just can't seem to get it.Really simple background I have a gp task that is taking a string from the user in the form of a TextBox.
parameters.Add(new GPString("Expression", (AttQueryTextBox.Text)));
Here's my problem when the users enters a string like "APN" = '999-999-999'Fiddler is reporting the expression with Escape Sequences mixed with unicode value of Characters:p I think
So Fiddle is reporting something like:\"APN\" = \u0027999-999-999\u0027 For the double quotation mark it is passing \" which maybe is the Escape Sequence and for the single quotation mark it is passing \u0027 which might be the Unicode Value but I thought that was 0x0027 but that doesn't really matter.I'm wondering how should I handle this??? I need the out put string to have the format of "APN" = '999-999-999'and if I give my endusers an example with direction they should be able to contruct the right statement. I just don't know what that is:(Another option I thought is I could clean the data before sending it to the GP but that could get messy because they could send use the 'OR' operator and string together muiltiple statements.ThanksJ