Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If and Else If

Status
Not open for further replies.

Blobishthing

Programmer
Joined
Feb 16, 2002
Messages
23
Location
AU
when i did

If (conitions) then ...
Else (conditions) then...

the VB gives me a message saying that there cant be an else statement without theIf block

What is wrong?

Thanx in advance.
 
If (conitions) then ...
Else (conditions) then...
Take the "then" off the else.
If that is not the error then post the real code. Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 


if (conditions) then
...
elseif (conditions) then
...
else
...
endif


Tane **** Keep it simple ***
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top