Well, again I have a class with VB, this time it is GUI and applications. Our main project involves a dummy company that sells a database program. Basically I need help with making a text box search a database.
Name:
Anonymous2005-01-20 10:40 (sage)
Buy a computer, they have text boxes and databases.
Name:
ZeroKun2005-01-20 13:02
Thanks alot for your nonconstructive comment. Why even bother posting crap like this?
Name:
Anonymous2005-01-20 17:26 (sage)
We won't do your homework for you.
Name:
Anonymous2005-01-20 18:00 (sage)
Not to mention that's a very vague question...
Name:
Anonymous2005-01-20 21:16
Microsoft Access - use VBA and/or SQL to do all the searching for you :)
Name:
Anonymous2005-01-21 9:24 (sage)
Access... ugh...
Name:
Arche2005-01-25 18:48
Well, is this assuming you're loading the database as like... a static text file or something, or an actual database file?
Name:
Christy McJesus!DcbLlAZi7U2005-02-23 10:45
First I'll give a vaguely helpful answer, then I'll flame you.
Am I correct in assuming you are implementing a GUI front end for a DBMS?
The user inputs SQL into a text box?
All you need to do is glue a couple of libraries together.
Look in the VB API. Find how to generate a text box and how to read its contents.
Find how to connect to a database, send SQL queries and read the answer.
Display result to screen. Should take less than 50 lines.
Now the flame: not directed at you so much as your educators. Who the absolute FUDGE teaches VB? If you want to teach people programming that is the last language on earth you should be using. I can understand someone trying it out as a kid, but to actually inflict it upon students who want to learn how to program? That's all kinds of wrong.
Name:
deitarion2005-02-23 20:09
I have to agree with the idiocy of teaching VB but my old high school does and so does my close friend's high school. (He's in Gr. 12 now)
My School:
Grade 10: VB (I was the last person to get the QBasic Course)
Grade 11: C++
Grade 12: Java
My Friend's School:
Grade 10: Turing
Grade 11: VB
Grade 12: C++
At least I managed to learn more from the C++ course than anyone else.
Name:
Christy McJesus!DcbLlAZi7U2005-02-24 8:37
C++ before Java? That's pretty backwards.
Java makes a good first language because it doesn't have to deal with trying to be backwards compatible with C. Once you've learned Java, learning C++ is just a case of making a couple of minor adjustments to the syntax and learning how to get along with Java's API.
Name:
Anonymous2005-02-27 0:01
I was more focused on Fortran, pot, and Quake in HS.
Name:
Anonymous2005-02-28 21:30 (sage)
Java is not a good first language. Don't kid yourself, it's an ugly mess and not for beginners.
Name:
Anonymous2005-03-01 0:48
Pascal is the best language for beginners.
Name:
Anonymous2005-03-01 10:23
PHP would be kind of good too; you can focus on the paradigm without worrying too much for data types yet.
But yeah, any OO for a first language is a bad choice, and Java of all OO languages is a bad choice itself.