primus Posted October 11, 2006 Share 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 Link to comment Share on other sites More sharing options...
smashly Posted October 11, 2006 Share Posted October 11, 2006 (edited) $var = "Hello" MsgBox(0,"I'm Saying", "This Is me saying" & $var) Hi... Edited October 11, 2006 by smashly Link to comment Share on other sites More sharing options...
primus Posted October 11, 2006 Author Share Posted October 11, 2006 hi and woohoo, tyty Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 11, 2006 Moderators Share 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. Link to comment Share on other sites More sharing options...
MHz Posted October 12, 2006 Share 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") 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