Jump to content

Add to the end of a string?


Recommended Posts

I am using StringInsert() to put a variable at the end of a string. Here is what I am using as a test for it:

#include <String.au3>

$string = "hello..."
MsgBox(0, "", _StringInsert($string, "!!!!", -1))
But the messagebox shows 'hello..!!!!.' I want to insert it at the end, I have already tried -0 for the position, and that just puts it at the front. How could I do this?

Thanks,

SANDMAN!

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

Oh, I'm stupid.. this will work:

$string = "hello..." & "!!!!"

silly me..

:)

Edited by sandman

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

  • 1 year later...

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...