McGod Posted October 13, 2007 Posted October 13, 2007 Assign("s", "['0', '1', '2']") #include <Array.au3> _ArrayDisplay($s) Something that can take literal ['0', '1', '2'] and convert it to an array. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
ericg32 Posted October 13, 2007 Posted October 13, 2007 #include <Array.au3> Dim $avArray $avArray = _ArrayCreate("JPM", "Holger", "Jon", "Larry", "Jeremy", "Valik", "Cyberslug", "Nutster", "Tylo", "JdeB") _ArrayDisplay( $avArray, "Array created with _ArrayCreate" ) Exit from the HELP in AUTOIT !!!
BrettF Posted October 13, 2007 Posted October 13, 2007 Even better? #include <Array.au3> Assign ("avArray", _ArrayCreate("JPM", "Holger", "Jon", "Larry", "Jeremy", "Valik", "Cyberslug", "Nutster", "Tylo", "JdeB")) _ArrayDisplay( Eval ("avArray"), "Array created with _ArrayCreate" ) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
McGod Posted October 13, 2007 Author Posted October 13, 2007 No, you see I have a string ['0', '1', '2'] I want to convert it to an array so string->array So that I dont have to parse the [[ then manually loop it into an array. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
BrettF Posted October 13, 2007 Posted October 13, 2007 No, you see I have a string ['0', '1', '2'] I want to convert it to an array so string->array So that I dont have to parse the [[ then manually loop it into an array.What is wrong with something like this? I cannot see for my life why you would want to do this? #include <Array.au3> $text = StringReplace (StringReplace ("['0', '1', '2']", "['", ""), "']", "") MsgBox (0, "", $text) _ArrayDisplay (StringSplit ($text, "', '", 1)) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
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