Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   Need help realy badly (http://zelaron.com/forum/showthread.php?t=38719)

osmoses-jones 2006-02-15 02:54 PM

Need help realy badly
 
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

1dumMan 2006-02-15 07:59 PM

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??


All times are GMT -6. The time now is 12:18 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.