mattfaust Posted September 14, 2007 Share Posted September 14, 2007 Could someone please provide an example of how to write a string to a variable. for instance: Case $btn1 $code = $code + "1" Case $btn2 $code = $code + "2" if btn1 and btn2 are pressed, I want $code to equal 12, not 3 thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted September 14, 2007 Developers Share Posted September 14, 2007 Use & in stead of + ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
weaponx Posted September 14, 2007 Share Posted September 14, 2007 Could someone please provide an example of how to write a string to a variable.for instance: Case $btn1 $code = $code + "1" Case $btn2 $code = $code + "2"if btn1 and btn2 are pressed, I want $code to equal 12, not 3thanksTreat them as strings. Case $btn1 $code &= "1" Case $btn2 $code &= "2" Link to comment Share on other sites More sharing options...
mattfaust Posted September 14, 2007 Author Share Posted September 14, 2007 ahh, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now