Jump to content
Sign in to follow this  
dickep

How to add strings

Recommended Posts

dickep

I am purplexed.

I need to add strings to strings, aka concantenation of strings. I cannot find out if there is a built in or if I must make my own atoi - itoa = itos function

Anyone know this please?

Thanks

E

Edited by dickep

Share this post


Link to post
Share on other sites
Nahuel

&

$String= "string1" & "string2"

:P

Share this post


Link to post
Share on other sites
SmOke_N

I am purplexed.

I need to add strings to strings, aka concantenation of strings. I cannot find out if there is a built in or if I must make my own atoi - itoa = itos function

Anyone know this please?

Thanks

E

$myString = String(Int($sString1) - $nInt) is what your example looks like to me, but Nahuel answered your concatenation question.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
dickep

$myString = String(Int($sString1) - $nInt) is what your example looks like to me, but Nahuel answered your concatenation question.

not sure what this does.

If I could ask, is it changing a number to a string? That is what I need to really do, add "String" to x (which changes).

Thanks again

E

Share this post


Link to post
Share on other sites
dickep

@dickep: Did you try this?

Yes, and it works. However, I am having a devil of a time remembering the $ before any variable call!! :P It will drive ;) me crazy.

E

Share this post


Link to post
Share on other sites
SmOke_N

not sure what this does.

If I could ask, is it changing a number to a string? That is what I need to really do, add "String" to x (which changes).

Thanks again

E

You made references to atoi... do you know what that function does?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

×