Jump to content

Combine strings?


Recommended Posts

Guest weirdwes

This is what I want to do and I am not sure how to go about it.

$firstname = "Agent"

$lastname = "J"

$fullname = $firstname + $lastname

msgbox(0,"your name is",$fullname)

Any help would be greatly appreciated.

Link to post
Share on other sites

I would probly use:

$fullname = $firstname & " " & $lastname

I like to see:

$First="Bob"

$Last="Smith"

$Fullname="Bob Smith"

instead of:

$Fullname="BobSmith"

or

$fullname = $lastname & ", " & $firstname

$Fullname="Smith, Bob"

AutoIt3, the MACGYVER Pocket Knife for computers.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...