Alexxander Posted August 25, 2013 Share Posted August 25, 2013 hi all how can i contain a variable in a message box body ? i mean shing like this $var = Guivtrlread(2) msgbox(0,"msg", "your pc will restart after $var") this is not working for me it is view $var as a word not a value any ideas ? Link to comment Share on other sites More sharing options...
Solution FireFox Posted August 25, 2013 Solution Share Posted August 25, 2013 (edited) Hi,The variables are not interpreted like in PHP whenever they are in a string. You need to put it out like this :$var = Guictrlread(2) msgbox(0,"msg", "your pc will restart after " & $var)Next time, please take a look at the helpfile, there are tons of examples. Br, FireFox. Edited October 27, 2013 by FireFox Alexxander 1 Link to comment Share on other sites More sharing options...
Alexxander Posted August 25, 2013 Author Share Posted August 25, 2013 Hi, The variables are not interpreted like in PHP whenever there are in a string. You need to put it out like this : $var = Guictrlread(2) msgbox(0,"msg", "your pc will restart after " & $var) Next time, please take a look at the helpfile, there are tons of examples. Br, FireFox. i had looked at the help doc but i couldn't find that tip thank you bro you are awesome ... Link to comment Share on other sites More sharing options...
FireFox Posted August 25, 2013 Share Posted August 25, 2013 Alright, I thought the example of the MsgBox function contained something like this. 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