Sign in to follow this  
Followers 0
Michael36

IF then

3 posts in this topic

Hi all i'm not sure i'm understanding this right what i have is a combo with three items

i'm trying to get it so when i click on a item in the combo it fires a msgbox

like "hallway" if i click hallway than that would fire a msgbox and so on i'm just not sure i have my expression right would i use the = or the > i have been looking in the help book but i can't seem to get it to work any ideas would be apreshated

thank you

Michael

If  $Combo ="Hallway"  Then MsgBox(0, "Test", &GUICtrlRead($Combo)"")

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

If GUICtrlRead($Combo) = "Hallway" Then MsgBox(0, "Test", GUICtrlRead($Combo))

Possibly?

Edited by AutoIt Smith

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0