So, i'm learning vbs and i'm playing with code to learn more, but there's an error:
when we clicked in lol's 'ok', it was suppose to appear lol3, and if we clicked in lol2's 'ok', it was suppose to appear lol4, but lol3 and lol4 don't appear any more!
please,someone help! i really want to learn vbs, but i'm stuck with this code and i want to know what was my mistake, and no, Option Explicit didn't told me the mistake.
Code:
Option Explicit
Dim x
Dim lol
Dim lol2
Dim lol3
Dim lol4
x=msgbox("oof" ,vbYesNo+vbSystemModal, "only oof")
if x = vbYes Then
lol=msgbox("more oofs then",vbCritical+vbOKCancel+vbDefaultButton1, "hehe")
ElseIf x = vbNo Then
lol2=msgBox("oh, ok then...",vbExclamation+vbOKCancel+vbDefaultButton1, "oh...")
ElseIf lol = vbOK Then
lol3=msgBox("ok",vbExclamation+vbOKCancel, "ok")
ElseIf lol2 = vbOK Then
lol4=msgBox("sad",vbExclamation+vbOKCancel, "...")
End If
when we clicked in lol's 'ok', it was suppose to appear lol3, and if we clicked in lol2's 'ok', it was suppose to appear lol4, but lol3 and lol4 don't appear any more!
please,someone help! i really want to learn vbs, but i'm stuck with this code and i want to know what was my mistake, and no, Option Explicit didn't told me the mistake.