shornw Posted January 12, 2012 Posted January 12, 2012 Can anyone suggest a way to present output from an array (with around 50 rows) $array[0] & $array[1] into a window in two columns so that it is 'clean' for the user to view I probably haven't explained this very well, so if I need to clarify please ask. Thanks [font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]
Mikeman27294 Posted January 12, 2012 Posted January 12, 2012 (edited) I think I get what you mean. Try this: For $Repeat = 0 to 50 Step 2 GuiCtrlCreateListViewItem($array[$Repeat]&"|"&$array[$Repeat+1], $ListView) Next Edited January 12, 2012 by Mikeman27294
shornw Posted January 12, 2012 Author Posted January 12, 2012 Finally!! Phew! MikeMan, I would never have done that without your suggestion. This is how it finally turned out, a bit different but you sure got the idea I had in mind. $listview = GUICtrlCreateListView( "Item | Name", 10, 10, 750, 800) For $Repeat = 1 to ubound($aProperties) -1 Step 1 GuiCtrlCreateListViewItem($aProperties[$Repeat][0]&"|"& $aProperties[$Repeat][1], $listview) Next Thank you so much. [font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]
Mikeman27294 Posted January 12, 2012 Posted January 12, 2012 (edited) I wouldnt use step 1 because for example, if we have an array with 4 values like so: 1,2,3,4 it will output this:1,22,33,44,errorEDITWait a second, you are using 2d arrays. Ok, that will work fine. Edited January 12, 2012 by Mikeman27294
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