primus Posted October 11, 2006 Posted October 11, 2006 got another dumb question msgbox("title", "stuff here with $variable but variables don't display") whats the syntax for that so it gives the value of $variable? tyty
smashly Posted October 11, 2006 Posted October 11, 2006 (edited) $var = "Hello" MsgBox(0,"I'm Saying", "This Is me saying" & $var) Hi... Edited October 11, 2006 by smashly
Moderators SmOke_N Posted October 11, 2006 Moderators Posted October 11, 2006 In short, vars can't be in the string itself that way and still be expected to execute. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MHz Posted October 12, 2006 Posted October 12, 2006 Expanding variables in strings is an alternative method that can be used when needed. Opt('ExpandVarStrings', 1) $variable = "VARIABLE" MsgBox(0, "title", "stuff here with $variable$ but variables don't display")
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