|
-
Dec 20th, 2005, 12:21 PM
#1
Thread Starter
New Member
[RESOLVED] Simple if statement problem
I'm trying to create a soccer prediction program for someone else on another forum. I've managed to do the easy bit, just slightly confused over what to do next.
Points are given out for every result you predict correctly, with bonus points on offer if you get the correct scoreline as well
- 2 points are won for guessing the correct result, i.e. Home win, Away win, or Draw.
- 3 extra points for guessing the correct scoreline
Those are the rules.
The preson will enter the predicted scorelines in one set of textboxes, and then enters the real scorelines in another set of text boxes.
Click me to see form
VB Code:
Private Sub cmdcalculate_Click()
Dim totalpoints As Integer
If user1.Text = real1.Text And user2.Text = real2.Text Then
totalpoints = 5
End If
lbloutput.Caption = totalpoints
End Sub
That works fine if they predict the first scoreline correctly, but I'm stuck on what code to use for the correct result.
Any help?
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
|