ViciouS Posted April 8, 2011 Share Posted April 8, 2011 (edited) i was wondering if there was a way to split a string into an array of characters? example, is it possible to split "string" into 0 s 1 t 2 r 3 i 4 n 5 g ? there is no delimiter for me to work with nevermind for now, i seem to have missed "If you use a blank string "" for the delimiters, each character will be returned as an element." in the help files. Edited April 8, 2011 by ViciouS Link to comment Share on other sites More sharing options...
AutoBert Posted April 8, 2011 Share Posted April 8, 2011 Yes is possible: #include <Array.au3> $sString = "String" $aOfChars = StringSplit($sString,"") _ArrayDisplay($aOfChars) Link to comment Share on other sites More sharing options...
wakillon Posted April 9, 2011 Share Posted April 9, 2011 Use AutoBert example with flag 2 for get it like you asked ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts 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