G
Guest
Hi,
I need to split a string by character so instead of
Dim str() as str
Dim sStr as string = "abcdef"
str(0) = sStr.substring(0,1)
str(1) = sStr.substring(1,2)
str(2) = sStr.substring(2,3)
str(3) = sStr.substring(3,4)
str(4) = sStr.substring(4,5)
I have
Dim sStr as string = "abcdef"
Dim chrs(5) as Char
sStr.CopyTo(0,chrs,0,6)
'To test
msgbox(chrs(0).toString)
Which is the better way?
Thanks
I need to split a string by character so instead of
Dim str() as str
Dim sStr as string = "abcdef"
str(0) = sStr.substring(0,1)
str(1) = sStr.substring(1,2)
str(2) = sStr.substring(2,3)
str(3) = sStr.substring(3,4)
str(4) = sStr.substring(4,5)
I have
Dim sStr as string = "abcdef"
Dim chrs(5) as Char
sStr.CopyTo(0,chrs,0,6)
'To test
msgbox(chrs(0).toString)
Which is the better way?
Thanks