I use substring and IndexOf to determine the value inside the string, but my code does not work if the string (strOldValue) below contains any string otherwise. Therefore, if strOldValue contains Test or TEST, my substring fails. How can I add ToUpper to this script? Forgive my ignorance, I am new to .Net.
String strValue = strOldValue.Substring(strOldValue.IndexOf(@"test"));
Thanks C
Calvin
source
share