Thread: Multiple Thens
View Single Post
Old Feb 13th, 2006, 11:26 PM   #3
MrMan9879
Programmer
 
MrMan9879's Avatar
 
Join Date: Sep 2005
Location: Nanaimo, BC, Canada
Posts: 97
Rep Power: 0 MrMan9879 is an unknown quantity at this point
Send a message via MSN to MrMan9879
There's also "And" is there not? So, you could do "If <condition> Then <some code> And <Some more code>".

So, your code would look like this (just an example) -
Private Sub Cmd.Start_Click()

If Combo.Text = 1 Then MsgBox Text1.Text And MsgBox Text2.Text

End Sub

If I am wrong, somebody correct me, as I cannot test this... my Visual Basic 2005 program will not work properly. Everytime I open it, it crashes when I try to do a few things.
MrMan9879 is offline   Reply With Quote