473,386 Members | 1,706 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,386 software developers and data experts.

display this comma delimited text ??

Ron
so if my textbox is named textbox1 and my listbox is named
ltsdisplay, for the button that would make this all happen I would
just need to:

lstdisplay.items.textbox1(delimited.Split(",".ToCh arArray()))
is that right? or no? I try this and I get an error...
On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-

- Hide quoted text -
- Show quoted text -

h...@gmx.atwrote:
"Tom Shelton" <tom_shel...@comcast.netschrieb:
How do I display delimited text on multiple lines in a listbox?
For example in my textbox I have this:
Joe Doe,123 Street,Mytown
and In a listbox then I want to display:
Joe Doe
123 Street
Mytown
How would I step through that string and seperate the words by the
comma?
Cation - air code follows:
listbox1.items.addrange(delimited.Split(",".ToChar Array()))
... ='delimited.Split(","c)'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Feb 27 '07 #1
2 2110
Ron
OK I figured it out.
lstdisplay.Items.AddRange(TextBox1.Text.Split(",". ToCharArray()))

now is there a way for me to insert something before each line for
example:

FIRST NAME: then the delimited text
LASTNAME: then the delimited text
etc..

?

On Feb 26, 10:09 pm, "Ron" <pts4...@yahoo.comwrote:
so if my textbox is named textbox1 and my listbox is named
ltsdisplay, for the button that would make this all happen I would
just need to:

lstdisplay.items.textbox1(delimited.Split(",".ToCh arArray()))

is that right? or no? I try this and I get an error...

On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-

- Hide quoted text -
- Show quoted text -

h...@gmx.atwrote:
"Tom Shelton" <tom_shel...@comcast.netschrieb:
>How do I display delimited text on multiple lines in a listbox?
>For example in my textbox I have this:
>Joe Doe,123 Street,Mytown
>and In a listbox then I want to display:
>Joe Doe
>123 Street
>Mytown
>How would I step through that string and seperate the words by the
>comma?
Cation - air code follows:
listbox1.items.addrange(delimited.Split(",".ToChar Array()))
... ='delimited.Split(","c)'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>- Hide quoted text -

- Show quoted text -

Feb 27 '07 #2
Ron,

lstdisplay.Items(0) = "FIRST NAME:" & lstdisplay.Items(0)
list.etc.

Cor

"Ron" <pt*****@yahoo.comschreef in bericht
news:11*********************@t69g2000cwt.googlegro ups.com...
OK I figured it out.
lstdisplay.Items.AddRange(TextBox1.Text.Split(",". ToCharArray()))

now is there a way for me to insert something before each line for
example:

FIRST NAME: then the delimited text
LASTNAME: then the delimited text
etc..

?

On Feb 26, 10:09 pm, "Ron" <pts4...@yahoo.comwrote:
>so if my textbox is named textbox1 and my listbox is named
ltsdisplay, for the button that would make this all happen I would
just need to:

lstdisplay.items.textbox1(delimited.Split(",".ToC harArray()))

is that right? or no? I try this and I get an error...

On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-

- Hide quoted text -
- Show quoted text -

h...@gmx.atwrote:
"Tom Shelton" <tom_shel...@comcast.netschrieb:
How do I display delimited text on multiple lines in a listbox?
For example in my textbox I have this:
Joe Doe,123 Street,Mytown
and In a listbox then I want to display:
Joe Doe
123 Street
Mytown
How would I step through that string and seperate the words by the
comma?
Cation - air code follows:
listbox1.items.addrange(delimited.Split(",".ToChar Array()))
... ='delimited.Split(","c)'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>- Hide quoted text -

- Show quoted text -


Feb 27 '07 #3

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

Similar topics

4
by: Arne | last post by:
From: "Arne de Booij" <a_de_booij@hotmail.com> Subject: Comma delimited array into DB problems Date: 9. februar 2004 10:39 Hi, I have an asp page that takes input from a form on the previous...
4
by: Christine Forber | last post by:
I wonder if anyone knows of some javascript code to check a comma-delimited list of email addresses for basic formating. What I'm looking for is the javascript code to check a form field on form...
2
by: A E | last post by:
Hi, I was wondering if there was a function that handles list elements of a comma delimited list? I need to be able to pass values as a comma delimited list, count the number of values, and...
1
by: DCM Fan | last post by:
Access 2K, SP3 on Windows 2K, SP4 All, I have an import spec set up with quoted Identifiers and comma-separated values. The text file is produced by a 3rd-party program of which I have no...
1
by: John B. Lorenz | last post by:
I'm attempting to write an input routine that reads from a comma delimited file. I need to read in one record at a time, assign each field to a field array and then continue with my normal...
2
by: Kenneth Koski | last post by:
Hello All, I have a comma delimited text file, which I would like to move into a SQL 2000 table . I created a DTS package in SQL Server and saved it as a VB.bas . I am writting the code in C#...
9
by: Bernie Yaeger | last post by:
Is there a way to convert or copy a .xml file to a comma delimited text file using vb .net? Thanks for any help. Bernie Yaeger
5
by: SMOlesen | last post by:
Hi I need to split a comma delimited text, however if the comma is between ' ' then no split should occur ie: Class.Value, 'true' , 'some text', 'false', 'text, text, text' should split...
4
by: JustSomeGuy | last post by:
Hi. I have a comma delimited text file that I want to parse. I was going to use fscanf from the C library but as my app is written in C++ I thought I'd use the std io stream library... My Text...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.