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 realy badly
Reply
Posted 2006-02-15, 02:54 PM
I hate vb i got this homework i don't know what to do with it. I need to change my code to what the teacher said. here is the code
Dim bValid As Boolean
Dim iFirst As Integer, iSecond As Integer, iResult As Integer

bValid = False
iResult = 0

If txtFirst = vbNullString Then
MsgBox "Value required in first text box.", vbExclamation, "Missing First Value"
txtFirst.SetFocus
ElseIf txtSecond = vbNullString Then
MsgBox "Value required in second text box.", vbExclamation, "Missing Second Value"
txtSecond.SetFocus
Else
bValid = True
iFirst = CInt(txtFirst.Text)
iSecond = CInt(txtSecond.Text)
End If

If bValid = True Then
iResult = iFirst + iSecond
txtResult = CStr(iResult)
End If
End Sub

Private Sub cmdExit_Click()
Dim vbanswer As VbMsgBoxResult

vbanswer = MsgBox("are you sure", vbYesNo, " Exit")
If vbanswer = vbYes Then
End
End If
End Sub

his question is
Create a procedure that replace the entry validation procedure.
Create a procedure that replaces the addition and subtraction operations
Create a function that replaces the multiplication and division operations

i don't know what hey said need help badly. Thank visual basic sux
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
 



 
Reply
Posted 2006-02-15, 07:59 PM in reply to osmoses-jones's post "Need help realy badly"
i took computer programming in 10th grade but i dont really remember to much of it...sorry man i wish i could help...what kind of program are you making or are u just making operations to change everything??
hokt on fonix rele wurkt fer me!!
Old
Profile PM WWW Search
1dumMan is neither ape nor machine; has so far settled for the in-between1dumMan is neither ape nor machine; has so far settled for the in-between
 
 
1dumMan
 
 

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 02:52 PM.
'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.