Jump to content

include a variable in a message box body ?


Go to solution Solved by FireFox,

Recommended Posts

Posted

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
Posted (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 by FireFox
Posted

  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 ...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...