I did read the forums but I didn't quite find anything that was dumbed down enough for me being new to VB and all.
I have a simple question:
If I wanted to write a program that compared 3 numeric values and placed them in sequence from 1st to 3rd place how would I do that? Could anyone give me a template or somewhere to start?
Keep in mind that in my introductory class all I have to work with here is logical operators, relational operators, and select case. I haven't studied arrays or sorting at this point.
Bottom line I was told to write a program for class that involves a race. Three individuals times are put into the form in seconds and I calculate the first, second, and third place. I started out doing the following:
VB Code:
If var1 < var2 And var1 < var3 then If var2 < var3 then txt1st = var1 txt2nd = var2 txt3rd =var3
Realizing that I would have to do this 27 times I figured there would HAVE to be an easier even beginner way to accomplish this task. Can any of you great indivduals help me out?




Reply With Quote