|
-
Jun 8th, 2000, 03:32 AM
#1
Thread Starter
New Member
Okay, I am VERY new to visual basic 6. I own the Deluxe learning edition. What I am trying to do, is have a hidden form with 50 numbers on it. The numbers each represent a car that is racing on the track. A box appears as a diffrent form and ask the user to imput the car numbers that won that race. I want the hidden form to award points to each car number that is entered as either a 1'st 2'nd or 3'rd place winner (3 pts. 2pts. and 1 pt.) I then want when all the races are done, the hidden form to appear and calculate the three car numbers with the highest scores, and display their number, their score, and their ranking (1st 2nd or 3rd) I am soooo new at this, and don't even know if this is possible. Does anyone know? I can't find any good books on coding! I don't know what I could use to do this!!! Anyone?
-
Jun 8th, 2000, 03:59 AM
#2
Addicted Member
You could try to do all of the calculations and input boxes in a module using arrays to store information and then open a window and load the information into the window.
-
Jun 8th, 2000, 04:50 AM
#3
Thread Starter
New Member
Okay, as I said I am kinda new. All I can do, is simple controls, like controlling what form is displayed buttons, simple commands etc. things like arrays and modules, don't make any sense to me. Maybe if you posted some like sample code or something to show how I could add numbers and then show the winners by outputting the info to a form latter. I am confused. I tried looking for arrays and module in my help CD, but it didn't help, they used odd terms that I didn't understand.
Thanks,
Mark
-
Jun 8th, 2000, 10:14 AM
#4
Thread Starter
New Member
-
Jun 8th, 2000, 10:31 AM
#5
Not too sure what ya want but lets get the ball rolling
Ok this might get some one else to think about the problem
You don't want to use arrays etc.
OK OK OK OK OK OK
From a main form load the form you don't want the user to see....but don't show it
Something like
Public Sub frmMain.Load()
Load frmCars ' this puts the form in memory but not on the screen.
You can then merrily change the values of objects on this form whilest it is "hidden"
e.g frmCars.txtCar1.Text = "Whatever"
when ya want to show it simply
frmCars.Show ' and whatever modal ya want
Probably a bit confusing but detail your form names and some control names on the various forms for a clearer description of what to do
Hope it Helps
-
Jun 8th, 2000, 10:34 AM
#6
Member
maybe you need to read some more. take time. Programming with vb is easy but you can't just jump into something without learning the language. As far as i can see, you're in the Visual part of the language. sir, VB has its BASIC part. You must learn this side to create even a simple program like you're asking about.
Mikey
A/P
Using VB6 SP4 Enterprise Ed.
-
Jun 8th, 2000, 10:23 PM
#7
Addicted Member
Some QUE Books are pretty good as well...
-
Jun 9th, 2000, 02:39 AM
#8
Any books by Sam's Publishing are really good for beginner's as well.
-
Jun 11th, 2000, 05:06 AM
#9
I agree with Meg
When l scored my current job, first one with vb...was taken on board for knowledge of other languages/OSs, my Boss throw a copy of Teach Yourselve VB5 in 21 Days at me and told me to spend two hours a day going through it.
Teaches all the Basic stuff, but once you take a few courses and get into the more advanced features of the vb programming language, forgot about 70% of what the book teaches you. There are better ways of doing things
Simple example
txtName.Text = rs.Field("CustName")
can be restated as
txtName = "" & rs!CustName ' "" is used to avoid the Invalid Use of Null error message in the case where CustName has no value.
Equally the books don't delve into three tier and multi user issues to a great extent.
-
Jun 11th, 2000, 05:16 AM
#10
Just recently, I browsed through a book called Visual Basic Step By Step and finished it in less than a minute because I skipped every page in the book because it was so easy!
This book is great for beginners but very slow and boring for advanced users.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|