[Help]School Work?[Solved]

Posts 111 of 11 · Page 1 of 1
[Help]School Work?[Solved]
i want to show the result in the msg box

tnx more power MPGH
Quote Originally Posted by MargZXerO View Post
i want to show the result in the msg box

tnx more power MPGH

Post your code here...Not in an attachment !!
Dim average As Integer
Dim units As Integer

Const math = 4
Const science = 3
Const english = 3
units = math + science + english
average = (Val(txtenglish * english + Val(txtscience) * science + Val(txtmath) * math)) / units
lblanswer.Caption = average
msg = MsgBox("Success Your Average Grade Is I WANT TO SHOW THE RESULT HERE!", vbInformation)
tnx in advance
Quote Originally Posted by MargZXerO View Post
tnx in advance
Code:
Dim average As Integer
Dim units As Integer
 Const math = 4
Const science = 3
Const english = 3
units = math + science + english
average = (Val(txtenglish * english + Val(txtscience) * science + Val(txtmath) * math)) / units
lblanswer.Caption = average
msg = MsgBox("Success Your Average Grade Is I WANT TO SHOW THE RESULT HERE!", vbInformation)
Fixed Code:

Code:
Dim average As Integer
 Dim units As Integer
 
 Const math = 4
 Const science = 3
 Const english = 3
 units = math + science + english
 average = (Val(txtenglish * english + Val(txtscience) * science + Val(txtmath) * math)) / units
 lblanswer.Caption = average
 MsgBox("Success Your Average Grade Is: " & average)
Easy Much ?


Quote Originally Posted by Brinuz
e// gosh Hassan.. :\ faster
Quote Originally Posted by Hassan View Post


Code:
Dim average As Integer
Dim units As Integer
 Const math = 4
Const science = 3
Const english = 3
units = math + science + english
average = (Val(txtenglish * english + Val(txtscience) * science + Val(txtmath) * math)) / units
lblanswer.Caption = average
msg = MsgBox("Success Your Average Grade Is I WANT TO SHOW THE RESULT HERE!", vbInformation)
Fixed Code:

Code:
Dim average As Integer
 Dim units As Integer
 
 Const math = 4
 Const science = 3
 Const english = 3
 units = math + science + english
 average = (Val(txtenglish * english + Val(txtscience) * science + Val(txtmath) * math)) / units
 lblanswer.Caption = average
 MsgBox("Success Your Average Grade Is: " & average)
Easy Much ?




WOW
awesome it's so easy for you..
Quote Originally Posted by MargZXerO View Post
WOW
awesome it's so easy for you..
Thanks

AND

1. Your very first post to ask for someone to do what you should be doing it's just wrong.
2. You can't have an attachment without virus scan.
3. How can you learn if someone is doing it for you?

e// gosh Hassan.. :\ faster
@Xscape
Still think that GUI could use more work
(inside joke)

Anyway, Marked Solved
Quote Originally Posted by NextGen1 View Post
@Xscape
Still think that GUI could use more work
(inside joke)

Anyway, Marked Solved
It's too square IMO.
Quote Originally Posted by Jason View Post


It's too square IMO.

Think you're better ?
Hahahahahaha, insider jokes ftw.
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?