Hi all-
I'm using a moverlist, and I can load the source list into 2 columns ( a description, and a unique key to find the description in a table)--however, when I select items from list1 to move over to list2, it only copies over the 1st column(description) of the source list, but the unique key field does not, so when I skip through the list2 box to gather the unique key into an array, I only have a description.
I was able to change the code around where when the list1 inits, the unique key is placed in column1 and the description in column 2:
With Thisform.moverlists1.lstSource
.ColumnWidths = "40,160"
.ColumnCount = 2
nRow = 0
Scan
If !Empty(keydesc.Desc)
nRow = nRow + 1
.AddListItem(STR(keydesc.primary,3),nRow,1)
.ListItem(nRow,2) = desc
Endif
Endscan
Endwith
But- when the user selects which items to move to list2, the unique number is the only thing shown in list2, and not the description...and I want the user to see the description.
I am using the moverlist from the samples directory. Is there anyway to change the columncount in list2 so I can reference it as I do for the source list?
Thanks
Angie
I'm using a moverlist, and I can load the source list into 2 columns ( a description, and a unique key to find the description in a table)--however, when I select items from list1 to move over to list2, it only copies over the 1st column(description) of the source list, but the unique key field does not, so when I skip through the list2 box to gather the unique key into an array, I only have a description.
I was able to change the code around where when the list1 inits, the unique key is placed in column1 and the description in column 2:
With Thisform.moverlists1.lstSource
.ColumnWidths = "40,160"
.ColumnCount = 2
nRow = 0
Scan
If !Empty(keydesc.Desc)
nRow = nRow + 1
.AddListItem(STR(keydesc.primary,3),nRow,1)
.ListItem(nRow,2) = desc
Endif
Endscan
Endwith
But- when the user selects which items to move to list2, the unique number is the only thing shown in list2, and not the description...and I want the user to see the description.
I am using the moverlist from the samples directory. Is there anyway to change the columncount in list2 so I can reference it as I do for the source list?
Thanks
Angie