911radio Posted October 30, 2009 Share Posted October 30, 2009 Hello, I have the following line of code: $var = IniRead(@ScriptDir & "\config.ini", "config", "group1", "") It will return something like: C:\testing,C:\testing2 I want to split that using the comma so that I can populate 2 text boxes in a GUI. Help, thanks! Link to comment Share on other sites More sharing options...
AndyG Posted October 30, 2009 Share Posted October 30, 2009 It will return something like: C:\testing,C:\testing2 I want to split that using the comma so that I can populate 2 text boxes in a GUI. #include <Array.au3> $var="C:\testing,C:\testing2" $path=stringsplit($var,",",3) ;strinsplit returns an array! _arraydisplay($path) msgbox(0,0,$path[0]&@crlf&$path[1]) Link to comment Share on other sites More sharing options...
911radio Posted October 30, 2009 Author Share Posted October 30, 2009 Perfect, thanks! I had been close, but arrays and that sort of thing are not my strong point and I couldn't completely wrap my head around it! 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