Sign in to follow this  
Followers 0
shornw

Output presentation

4 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Mikeman27294

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (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,2

2,3

3,4

4,error

EDIT

Wait a second, you are using 2d arrays. Ok, that will work fine.

Edited by Mikeman27294

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0