I'm using the command below to add items to a list box. My nItemID number is the recno of a file.
Control.AddListItem(cItem [, nItemID] [, nColumn])
E.G
.lstSales.ADDLISTITEM(PADL(STOCK.DESCR, 30, ' '), RECNO('SELLLINE'), 1)
The listbox can hold any amount of items. Once the items are in there is there a way I can loop through the listbox and get the nItemid number. Something like below:
For nCnt = 1 to .lstsales.listcount
messagebox(.lstsales.list(ncnt)
Endfor
I beleive the above example will give me the Stock.Descr. is there something similar to get the nItemID number?
Thanks
Control.AddListItem(cItem [, nItemID] [, nColumn])
E.G
.lstSales.ADDLISTITEM(PADL(STOCK.DESCR, 30, ' '), RECNO('SELLLINE'), 1)
The listbox can hold any amount of items. Once the items are in there is there a way I can loop through the listbox and get the nItemid number. Something like below:
For nCnt = 1 to .lstsales.listcount
messagebox(.lstsales.list(ncnt)
Endfor
I beleive the above example will give me the Stock.Descr. is there something similar to get the nItemID number?
Thanks