Falling Posted July 22, 2004 Share Posted July 22, 2004 OK why can't I do this? $ListOfChars[] = "ABCDEFGBLLLLAAAH" And then: $ListOfChars[1] ='A' $ListOfChars[2] ='B' $ListOfChars[3] ='C' $ListOfChars[4] ='D' $ListOfChars[5] ='E' Etc... Is there a function that explodes a string into a array? or one that implodes a array into a string? Look up Array in the help file a index entry is not even devoted to it. Other types of searches in the help file returns some information but man it seems awfully clunky way of useing a array? Or why not this syntax? $list["sweet", "nice", "cool"] Is it somthing like critical to Autoit that disallows this kind of action? Thanks for any infos! Link to comment Share on other sites More sharing options...
Developers Jos Posted July 22, 2004 Developers Share Posted July 22, 2004 try: $ListOfChars = stringsplit("ABCDEFGBLLLLAAAH","") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ezzetabi Posted July 22, 2004 Share Posted July 22, 2004 Or why not this syntax? $list["sweet", "nice", "cool"]Or $list = StringSplit("sweet!!nice!!cool","!!") It is easy. You are thinking complex... 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