quick! how do I eliminate this character?

SelArom

Senior member
Sep 28, 2004
872
0
0
www.djselarom.com
I made a multiline textbox in asp.net and put a few rows of text. Now I made a string array and split the text into the array using the vbcrlf character, but when it fills the array it looks like this:

arraystring(0): item1
arraystring(1): []item2
arraystring(2): []item3
...
arraystring(n-1): []

where [] is a square. I can't make that symbol on this post because if I paste it it just makes a crlf.

I want to be able to remove those symbols so that the array is just

arraystring(0): item1
arraystring(1): item2
...

and so on, without that last blank entry, but I don't know how to do it. i tried using a string.replace(vbcrlf, "") to each element in the array but it doesn't remove that character. I'm at a real loss here, can someone help?

thank you!
-SelArom
 

rsd

Platinum Member
Dec 30, 2003
2,293
0
76
Find what the ascii equivalent of that character is and try to replace it that way I believe