help for newbi neede 
November 20th, 2005, 03:10 AM
| | | |
i want to transfer the content of a text box/message box to a string
array. like i have the word "hellO" and want the h to be myvariable(1),
the e myvariable(2) the l myvariable(3) and so on... can i read out text
box positions? like textbox.capture.position.1 or somehow like this??
thanx | 
November 20th, 2005, 03:10 AM
| | | | re: help for newbi neede
I'm going to make an inherited textbox that has the method capture just
because you put it here. =)
Actually, Textbox.Text is of type String
So you can just use
Dim myArray() as String
myArray = textbox.text.toCharArray
-CJ
"Coffee" <therethere40@hotmail.com> wrote in message
news:3F7480C1.2000409@hotmail.com...[color=blue]
> i want to transfer the content of a text box/message box to a string
> array. like i have the word "hellO" and want the h to be myvariable(1),
> the e myvariable(2) the l myvariable(3) and so on... can i read out text
> box positions? like textbox.capture.position.1 or somehow like this??
> thanx
>[/color] | 
November 20th, 2005, 03:11 AM
| | | | re: help for newbi neede
"Coffee" <therethere40@hotmail.com> schrieb[color=blue]
> i want to transfer the content of a text box/message box to a string
> array. like i have the word "hellO" and want the h to be
> myvariable(1),
> the e myvariable(2) the l myvariable(3) and so on... can i read out
> text box positions? like textbox.capture.position.1 or somehow like
> this?? thanx[/color]
Don't know if I got it, but I think the Chars property of a string returns
the char at the given position.
--
Armin | 
November 20th, 2005, 03:11 AM
| | | | re: help for newbi neede
Coffee <therethere40@hotmail.com> scripsit:[color=blue]
> i want to transfer the content of a text box/message box to a string
> array. like i have the word "hellO" and want the h to be
> myvariable(1), the e myvariable(2) the l myvariable(3) and so
> on... can i read out text box positions? like
> textbox.capture.position.1 or somehow like this??[/color]
I think it's better to use a character array for this purpose:
\\\
Dim achr() As Char = Me.TextBox1.Text.ToCharArray()
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet> | 
November 20th, 2005, 03:12 AM
| | | | re: help for newbi neede
Hi Coffee,
Because there are so many answers, the string itself was (and is) one of the
first arrays, but mostly we don't think about it in that way.
It is an array of characters.
Cor |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|