big_C
asked on
Adding data to a multl-column list control in VBscript
I've got a multi-column list control (4 columns) and I'm trying to put data in columns 2 - 4, but I don't konw how.
The list control will automatically fill the columns - you can't specifically put items in particular columns. When column 1 is filled, column 2 will start being filled, then column 3, etc.
ASKER
It's not working like that though. When I try to use the additem function, it just puts all of the data into the first column.
That is how it is meant to work - it puts data into the first column until that column is full, then will put other data into the other columns. It will only use the other columns once the bottom of the first column is reached.
Incidentally, is this in VBScript or VB?
Incidentally, is this in VBScript or VB?
ASKER
this is VBscript. So if I have 3 arrays and each array is meant to be listed in it's own column, can I make the list control only 1 row, the add an item from each array so that array1(0) goes into column 1, then array2(0) goes into column 2 etc... Can I then adjust the number of rows in each column?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I tried that, but the default font on the PC isn't a fixed width font so it doesn't show looking like columns. I've decided to just have just the one column filled with the all of the values in array1 (which is basically the key to the rest of the arrays, then just have text boxes with the other 3 array's data. So when they click on a row in the list control, it updates the text boxes with the matching information. My users were ok with that. Thanks for your help and information!!
ASKER
Thanks for your help!!!