brain death

  • Thread starter Thread starter gonzosez
  • Start date Start date
Gonzosez,

dim mystring as string = "I contain 70 characters"
dim firstchar as Char = mystring(0)

I hope this helps,

Cor
 
gonzosez napisal(a):
I need to break a string in to 70 char pieces.
How can I do this?

You can use Substring or Split method. Read about them in MSDN.

Regards,
sweet_dreams
 
gonzosez napisal(a):
I need to break a string in to 70 char pieces.
How can I do this?

I don't get what you mean, but may be you will find helpful Substring
or Split methods. More in MSDN.

Regards,
sweet_dreams
 
This will break your string up into individual character and put them into an
array. If you have a 70 char string, you will get arr.length=70 but if you
have a 60 char string, you will get arr.length = 60. Not sure if this is
what you wanted.

Dim str As String = "012wxyz789"
Dim arr() As Char
arr = str.ToCharArray(3, 4)
 
Back
Top