Jump to content

how to write a string


mattfaust
 Share

Recommended Posts

Could someone please provide an example of how to write a string to a variable.

for instance:

Case $btn1

$code = $code + "1"

Case $btn2

$code = $code + "2"

if btn1 and btn2 are pressed, I want $code to equal 12, not 3

thanks

Treat them as strings.

Case $btn1

$code &= "1"

Case $btn2

$code &= "2"

Link to comment
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
 Share

  • Recently Browsing   0 members

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