Thursday 23 August 2012

VB Programming Basic Concepts - If-Else-If Condition

VB Programming Basic Concepts - If-Else-If Condition

 Below are the ways to write If statements in a VB Program :

1. Simple IF

If [condition] Then
Code 
......
End If 

2. IF Else -

If [condition] Then
Code
......
Else
Code
......
End If

3. Else If -

If [condition] Then
Code
......
Else If [condition] Then
Code
......
End If

No comments:

Post a Comment