Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
need help in vb
Reply
Posted 2006-02-01, 08:04 PM
Ok i got to make a random guessing game for my class. But it don't work for me here the code plz tell me what i am doing wrong.

Code:
Private Sub cmdClickToPlay_Click()
    Dim intNumber As Integer
    Dim intGuess As String
    
    'The code below will generate a random number between 1 and 50...
    Randomize
    intNumber = Int(Rnd * 50) + 1
    
    
End Sub

Private Sub Click_Click()
Dim intNumber As Integer
Dim intGuess As String

Do While intGuess = intNumber
Loop

intGuess = InputBox("i am guessing a number guess what it is")

If intGuess = intNumber Then
    intGuess = InputBox(" you guess it")
    List1.AddItem Str(intGuess)

End If

If intGuess > intNumber Then
    intGuess = InputBox("your guess is to high")
    List1.AddItem Str(intGuess)

End If
If intGuess < intNumber Then
    intGuess = InputBox(" your guess is to low")
    List1.AddItem Str(intGuess)

End If

End Sub
Old
Profile PM WWW Search
osmoses-jones is neither ape nor machine; has so far settled for the in-betweenosmoses-jones is neither ape nor machine; has so far settled for the in-between
 
osmoses-jones
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:28 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.