
IF Statement Syntax
If logicalcondition Then
Compound Statement
End If
Sample Program that best illustrate the use of IF Statement in Visual Basic 6.0.
Interface
Object Properties
Source Code
Private
Sub cmdclose_Click()
If
MsgBox("Are you sure you want to end this program?", vbQuestion +
vbYesNo, "Comparing Two Numbers using IF Statement") = vbYes Then
End
End
If
End
Sub
Private
Sub cmdIF_Click()
If
cmdIF.Caption...