B
Bryan Dickerson
I have a string that is delimited, e.g.
"SOD;NAME;ADDRESS1;ADDRESS2;PHONE;CITY;STATE;ZIP;EOD", that I need to strip
off the "SOD;" at the beginning and the ";EOD" at the end. I am well
familiar with the Split and Join functions that can split a string like this
out to an array and vice versa, but is there a way that I can split the
string into an array and then join it back to a string along with telling it
to ignore the first and last element? Or even some way to ReDim the "split"
array to ignore certain elements? I know I can do it the old fashioned way
with .IndexOf methods, but I was thinking that the Split and Join functions
would be somewhat faster. Would a stringbuilder array and a loop be much
faster yet (these strings can get to be pretty good size--thousands of
bytes)? Just thinking "out loud" as I wrote.
Thanx in advance for your thoughts!
"SOD;NAME;ADDRESS1;ADDRESS2;PHONE;CITY;STATE;ZIP;EOD", that I need to strip
off the "SOD;" at the beginning and the ";EOD" at the end. I am well
familiar with the Split and Join functions that can split a string like this
out to an array and vice versa, but is there a way that I can split the
string into an array and then join it back to a string along with telling it
to ignore the first and last element? Or even some way to ReDim the "split"
array to ignore certain elements? I know I can do it the old fashioned way
with .IndexOf methods, but I was thinking that the Split and Join functions
would be somewhat faster. Would a stringbuilder array and a loop be much
faster yet (these strings can get to be pretty good size--thousands of
bytes)? Just thinking "out loud" as I wrote.
Thanx in advance for your thoughts!