EmersonH.Com

Transforming Knowledge into Power

  • Increase font size
  • Default font size
  • Decrease font size
Home VB 6 Logic If statement

If statement

E-mail Print

To effectively control the VB program flow, we shall use If...Then...Else statement together with the conditional operators and logical operators.
The general format for the if...then...else statement is

If conditions Then

VB expressions

Else

VB expressions

End If

* any If..Then..Else statement must end with End If. Sometime it is not necessary to use Else.

Last Updated on Monday, 21 December 2009 17:00