Sign in to follow this  
Followers 0
Wb-FreeKill

Msgbox and variables

4 posts in this topic

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

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

#3 ·  Posted (edited)

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

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  
Followers 0