473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

help for newbi neede

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

Nov 20 '05 #1
4 1249
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" <th**********@hotmail.com> wrote in message
news:3F**************@hotmail.com...
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

Nov 20 '05 #2
"Coffee" <th**********@hotmail.com> schrieb
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

Don't know if I got it, but I think the Chars property of a string returns
the char at the given position.
--
Armin

Nov 20 '05 #3
Coffee <th**********@hotmail.com> scripsit:
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??


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>
Nov 20 '05 #4
Cor
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
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rajesh Garg | last post by:
I have actually extended my request I have a scenario like this....... update esan set tes_address_city = 'TEST1' --at some time update esan set tes_address_city = 'TEST12' --at some time...
5
by: Newbee Adam | last post by:
I am having some problems with getting squgglie lines under stringbuilder and ConfigurationSettings what am I doing wrong, is this even close to working? help....
5
by: Newbee Adam | last post by:
I am having some problems with getting squgglie lines under stringbuilder and ConfigurationSettings what am I doing wrong, is this even close to working? help....
4
by: dasarisrikar | last post by:
hello..can anybody help me.. i cant understood the meaning of *(int *)p=2; so pls hepl me...wt it actully do....
1
by: 6655326 | last post by:
Newbi needs a very small help, thank you very much. Hello everyone and thank you very much for your time. I Have a small db for invoicing and on my form (with a subform) there is a CANCEL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.