Hello,
I am doing heavy-duty string operations:
CharAt
IndexOf
"RemLet" (my remove letter)
Within a short string (10 characters or less) I have to extract a particular character. Using that character I have to see if it exists in another short string (10 characters or less). And, if it does I have to remove that character from the second string.
I am using the String data type. I see there is also a StringBuilder; it does not have an IndexOf, but it has a Remove. String has an IndexOf but no Remove.
For my Remove, I am basically using:
t = s.SubString2(0, pos) & s.SubString(pos+1)
the operations I'm performing take about 2 min. I would like to speed that up if possible.
Can anyone suggest a faster way to work worth short strings? The key functions are equivalents to: CharAt, IndexOf, and Remove.
Thanks,
Barry.
I am doing heavy-duty string operations:
CharAt
IndexOf
"RemLet" (my remove letter)
Within a short string (10 characters or less) I have to extract a particular character. Using that character I have to see if it exists in another short string (10 characters or less). And, if it does I have to remove that character from the second string.
I am using the String data type. I see there is also a StringBuilder; it does not have an IndexOf, but it has a Remove. String has an IndexOf but no Remove.
For my Remove, I am basically using:
t = s.SubString2(0, pos) & s.SubString(pos+1)
the operations I'm performing take about 2 min. I would like to speed that up if possible.
Can anyone suggest a faster way to work worth short strings? The key functions are equivalents to: CharAt, IndexOf, and Remove.
Thanks,
Barry.