mattfaust Posted September 14, 2007 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
Developers Jos Posted September 14, 2007 Developers 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.
weaponx Posted September 14, 2007 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"
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