Computing.Net > Forums > Programming > VB and Seqeuntial file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB and Seqeuntial file

Reply to Message Icon

Name: mgichoga
Date: December 1, 2004 at 11:11:55 Pacific
OS: Win XP
CPU/Ram: 256
Comment:

hello,
I have a problem coding my vb application.
I want to retrieve some information from a sequential file and add it to a list box. I have been trying different methods up to and including arrays but I've not been successful. For example, I want to pull part numbers and put it into a listbox from where the user can select the part number he/she wants. Please advise.

Michael



Sponsored Link
Ads by Google

Response Number 1
Name: PopMon
Date: December 5, 2004 at 11:55:44 Pacific
Reply:

One method for populating a Listbox is to use the "AddItem" method. In your case, let's assume that the Listbox is named "List1", and that each part number is "pulled" into a string called "Data". The code for adding the item is:

List1.AddItem Data

I tested this on one of my projects and it worked fine.

Good luck


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB and Seqeuntial file

vb read and write file www.computing.net/answers/programming/vb-read-and-write-file/6672.html

Difference between .VBE and .VBS www.computing.net/answers/programming/difference-between-vbe-and-vbs/14943.html

Txt doc and Dat files using VB www.computing.net/answers/programming/txt-doc-and-dat-files-using-vb/16089.html