Jump to content
Sign in to follow this  
Wb-FreeKill

Msgbox and variables

Recommended Posts

Wb-FreeKill

Can't seem to get this to work :)

$icon = 16

$Buttons = 2

msgbox($icon & "+" & $Buttons,"test","test")

How come?

Share this post


Link to post
Share on other sites
MHz

The 2 variables $icon and $buttons, represent numbers 16 and 2. How do we add numbers? With an addition symbol.

msgbox($icon + $Buttons,"test","test")

using a "+" as a string, is the problem, that you were receiving.

:)

Share this post


Link to post
Share on other sites
keeskas

Can't seem to get this to work  :)

$icon = 16

$Buttons = 2

msgbox($icon & "+" & $Buttons,"test","test")

How come?

<{POST_SNAPBACK}>

$icon = 16

$Buttons = 2

msgbox($icon + $Buttons,"test","test")

the quotes make + behave as text

Edited by keeskas

Share this post


Link to post
Share on other sites
Wb-FreeKill

O, quite simple anyway, thx :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.