Computing.Net > Forums > Programming > [VB 6] Multiple inputs to output

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 6] Multiple inputs to output

Reply to Message Icon

Name: hobblyhoy
Date: August 24, 2006 at 00:46:49 Pacific
OS: winxp
CPU/Ram: 512
Product: 2
Comment:

Alright I've got a list A and a list B. I would like to be able to save list A and list B into one file, which I could later use a LOAD button to load list A and list B into their repsective places.

Basicly I want to be able to save and load the contents of multiple things with one 1 save file. Then later on when I hit a "load" button they place themselves back into there catagories. I'm sure it can be done Im just at a loss for how I would do it. I'm quite a VB6 noob

Thank you for all your help,
-Nathan

"the right to swing my arm ends where your nose begins."
-Claude Adrien Helvetius



Sponsored Link
Ads by Google

Response Number 1
Name: webbg
Date: August 28, 2006 at 11:57:43 Pacific
Reply:

One solution which perhaps isn't the most efficient would be to write to your file a number indicating the number of items in list A. Then write all the items from list A. Then a number indicating the number of items in list B. Then all the items from list B.

Then when you want to load them back, the first thing you read tells you how many items to read into list A. Then the next number tells you how many items to read into list B.

Hope that makes some sense!!


0

Response Number 2
Name: SamRock
Date: October 5, 2006 at 06:59:01 Pacific
Reply:

How about prefixing each record with 'A' or 'B' or whatever?

So when u read the records, if the prefix is 'A', then Laod into List A else List B.

:)

Samuel Roshan


0

Sponsored Link
Ads by Google
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 6] Multiple inputs to output

VB 6 with Access www.computing.net/answers/programming/vb-6-with-access/12470.html

Declaring Variables in VB 6.0 www.computing.net/answers/programming/declaring-variables-in-vb-60/9957.html

VB 6.0 and serial port www.computing.net/answers/programming/vb-60-and-serial-port/3469.html