• Welcome to Valhalla Legends Archive.
 

Help!

Started by Reaper~, December 21, 2004, 10:32 PM

Previous topic - Next topic

Reaper~

I need to know how to make an event where if the user inputs the right number that shows up randomly something will happen.
Ex.

Private Sub cmdGo_Click()
lblAnswer.Caption = "And the number is..."
lblNumber.Caption = Rand(1, 25)
If txtNumber.Text =                  Then
MsgBox ("Mega-Winner!! $500 has been sent to your account!")
frmAccount.lblWinning1.Caption = "$500"
End If


What do I put after the = in If txtNumber.Text = ?
Take my advice, I'm not using it.

Warrior

Wildguess:

If txtNumber.Text = lblNumber.Caption Then
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Reaper~

Lol wow I must be tired or thinking to hard I was trying all kinds of things. Thanks!
Take my advice, I'm not using it.