hazejean Posted October 4, 2003 Posted October 4, 2003 I have situation where i am reading a list in text in following form: [string1];[string2];[string3];[string4] I want to extract "string1" "string2" etc I did a split using ;...code follows Dim strstring21 As String = pretext(2) Dim s21() As String = Split(strstring21, ";") For x = LBound(s21) To UBound(s21) linkpos(x) = s21(x) Next THEN I need to remove left and right brackets from the strings in linkpos array. Ideas? Thanks Quote
*Experts* mutant Posted October 4, 2003 *Experts* Posted October 4, 2003 You could use the Replace method of a string: dim str As String = "[string1];[string2]" str = str.Replace("[", "") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.