Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Saving a Form - Database? Posted by OLineCoach on 20 Apr 2005 at 7:15 PM
Here is my situation. I created a program on VB6.0 to track student's grades in high school. In doing this, I used over 90 combo boxes, 50+ labels, along with textboxes, etc.

I wanted to be able to choose the classes, etc for each student and save the form with my choices to the hard drive so I could pull it back up later and make changes.

I did not use a database to begin with because I did not know how. Still don't. However people have been telling me that I need a DB in order to save. I am going to make this program into an EXE when done.

Can I save the form and data as is without a DB, or do I need one?

Is there a way to create a new DB to handle the current objects and code from the program or do I have to start over?

Is VisData worth using? It just confuses me to even look at.

Any and all help appreciated!


Report
Re: Saving a Form - Database? Posted by Genjuro on 21 Apr 2005 at 1:34 AM
: Here is my situation. I created a program on VB6.0 to track student's grades in high school. In doing this, I used over 90 combo boxes, 50+ labels, along with textboxes, etc.
:
: I wanted to be able to choose the classes, etc for each student and save the form with my choices to the hard drive so I could pull it back up later and make changes.
:
: I did not use a database to begin with because I did not know how. Still don't. However people have been telling me that I need a DB in order to save. I am going to make this program into an EXE when done.
:
: Can I save the form and data as is without a DB, or do I need one?

Well, you don't really "need" one, strictly speaking.
It *will* come in handy, and I'd recommend you to use one, but you don't need one - in fact, you could do without, if you save all your data to simple disk files. It's just not as fast, not as comfortable, and not as flexible as having a database.

: Is there a way to create a new DB to handle the current objects and code from the program or do I have to start over?

Well, if you haven't any code to write things to the disk, there's no reason to start over - unless the project is so messed up that you can't write it.
Open, for instance, Access, create a new .mdb file, and start designing tables to contain data.

: Is VisData worth using? It just confuses me to even look at.

As far as I'm concerned, I never use it, or any "visual database" tool, unless it's some "administration program" for the database I'm using (the "Microsoft Access" application for .mdb files, the Query Analyzer for SQL Server, and so on).
I like to write the code myself, not having some kind of "wizard" handle my code its way. Hey, it's my code after all.
Report
Re: Saving a Form - Database? Posted by melissa_may1 on 22 Apr 2005 at 7:53 PM
It sounds like you ought to have a database.

But first, it sounds like you need to rethink your design.

90 combo boxes? That sounds overwhelming.

Let me guess...one combo box for each student?

There must be a way to design this so that it will be much easier to manage.

That's where a database really comes in...you set it up so that the user interface is simpler, and your programming ends up easier when you put things in a database.

Example: What would be an easier way to handle two grades for each of 100 students? 200 variables? Or two variables and a database?

Let us know more details...I'd love to see a program with 90 combo boxes...


Melissa




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.