Hell4Ge Posted July 27, 2012 Posted July 27, 2012 Like in C++ that was pretty easy (string a="asdsd"; // a[4]='d'), that I cant make it to work in AU Any ideas?
pieeater Posted July 27, 2012 Posted July 27, 2012 Check out:StringToASCIIArray()StringFromASCIIArray()Asc()Example:$string = "asdasd" ConsoleWrite($string&@CRLF) $nString = StringToASCIIArray($string) $nString[3] = Asc("d") $string = StringFromASCIIArray($nString) ConsoleWrite($string&@CRLF)Hope it helps [spoiler]My UDFs: Login UDF[/spoiler]
hannes08 Posted July 27, 2012 Posted July 27, 2012 You could also use the StringSplit function or StringMid function. $sString = "abcdefg" $sString = StringLeft($sString, 3) & "z" & StringMid($sString, 5) ConsoleWrite($sString & @CRLF) Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
AZJIO Posted July 27, 2012 Posted July 27, 2012 MsgBox(0, 'Yes?', StringReplace("asdsd", 4, "d")) My other projects or all
hannes08 Posted July 27, 2012 Posted July 27, 2012 MsgBox(0, 'Yes?', StringReplace("asdsd", 4, "d")) Nice. I never used StringReplace like that. It seems the old pal "RTFM" is still around. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
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