PC Review


Reply
Thread Tools Rate Thread

display this comma delimited text ??

 
 
Ron
Guest
Posts: n/a
 
      27th Feb 2007
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(",".ToCharArray()))


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.at> wrote:
> "Tom Shelton" <tom_shel...@comcast.net> schrieb:


> >> 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(",".ToCharArray()))



> ... => '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/>


 
Reply With Quote
 
 
 
 
Ron
Guest
Posts: n/a
 
      27th Feb 2007
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.com> wrote:
> 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(",".ToCharArray()))
>
> 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.at> wrote:
> > "Tom Shelton" <tom_shel...@comcast.net> schrieb:
> > >> 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(",".ToCharArray()))

> > ... => '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 -



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      27th Feb 2007
Ron,

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

Cor

"Ron" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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.com> wrote:
>> 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(",".ToCharArray()))
>>
>> 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.at> wrote:
>> > "Tom Shelton" <tom_shel...@comcast.net> schrieb:
>> > >> 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(",".ToCharArray()))
>> > ... => '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 -

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial comma delimited text - Import to XL evry 8th comma nuRow Billp Microsoft Excel Programming 30 23rd Jun 2009 11:51 PM
Comma-delimited text format Nancy Microsoft Word Document Management 9 3rd Apr 2008 12:35 AM
Using comma inside the comma delimited text in Data Validation/Sou LasseH Microsoft Excel Programming 5 14th Dec 2007 04:09 AM
Comma delimited text Wayne Microsoft C# .NET 9 24th Feb 2005 02:30 PM
Re: Can I display the values from a single field in a comma-delimited Allen Browne Microsoft Access Reports 0 7th Sep 2004 04:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:23 PM.