Jump to content

Inserting a string into an existing string

Recommended Posts

$NewCustomerID = StringReplace($chars, 553, $CustomerID) ;Repaces the Customer ID in tiapp.xml
    $NewCustomerData = StringReplace($NewCustomerID, 562, $CustomerPin) ;NewCustomerData hold the properly modified xml data
    FileOpen("tiapp.xml", 2)
    FileWrite("tiapp.xml", $NewCustomerData)

I am not sure if showing you my code will do anything for my question but here it is anyway. What I can do with the above code is replace a string character for character starting from a certain string. What I want to do is instead of replace the string, I want to insert a string (so the characters after the string insert will move to the right and I wont lose any information). I can't see anything in the string family of functions. Is there something like StringInsert?

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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