computergroove Posted January 30, 2011 Share Posted January 30, 2011 $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) FileClose($xmlfile) Exit 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 comment Share on other sites More sharing options...
AdmiralAlkex Posted January 30, 2011 Share Posted January 30, 2011 There is _StringInsert() .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now