Hell4Ge Posted July 27, 2012 Share 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? Link to comment Share on other sites More sharing options...
pieeater Posted July 27, 2012 Share 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] Link to comment Share on other sites More sharing options...
Hell4Ge Posted July 27, 2012 Author Share Posted July 27, 2012 It will Thanks Link to comment Share on other sites More sharing options...
hannes08 Posted July 27, 2012 Share 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] Link to comment Share on other sites More sharing options...
AZJIO Posted July 27, 2012 Share Posted July 27, 2012 MsgBox(0, 'Yes?', StringReplace("asdsd", 4, "d")) My other projects or all Link to comment Share on other sites More sharing options...
hannes08 Posted July 27, 2012 Share 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] 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