Hi Coffee,
I have asked this before, but the offered solution did not work.
I want to have a command button, that transfers any text from a textbox
to a variable which is an array. so that i can print out single letters
of the text.
e.g. if i have "hello" in the textbox and i print out the forth letter
it should list "l"....
can someone tell me howto?
A lot of Coffee today.
In addition from the other answers. The textbox.text is a string. A string
is in itself an array of characters.
You get something out of that using VB string functions or Net string
members.
The index start at 0 so the 4th character is 3.
Using a string member it will be your example is the fouth letter
textbox1.text.substring(3,1). 4 character with a length of 1.
When you want to use a single character, use the char, do you want a part of
the string then substring.
Cor