Alexxander Posted August 25, 2013 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 ?
Solution FireFox Posted August 25, 2013 Solution 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
Alexxander Posted August 25, 2013 Author Posted August 25, 2013 On 8/25/2013 at 10:35 AM, FireFox said: 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 ...
FireFox Posted August 25, 2013 Posted August 25, 2013 Alright, I thought the example of the MsgBox function contained something like this.
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