Sign in to follow this  
Followers 0
sandman

Add to the end of a string?

4 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites

Thank you for the hint with the & sign. I used + all the time.. :P

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