I've run into the same problem. Microsoft has a work around in the Knowledge Base that says to set the RowSource to None and populate the list with AddItem. I haven't tried that since I created my own workaround first. I added a new array propery (aSelected) to my ListBox class to hold the Selected status. I update it in the InteractiveChange event. I redimension the array as the size of my list changes as a result of requerying the view it is based on. I haven't got the Shift-Click working yet but otherwise my aSelected array gives me the right answer to what was selected from the list.
Steve
>I'm using VFP 3.0 in Win95.
>
>I'm create a ListBox containing PO number in my form. Below are some setting of the ListBox object :-
>
>ColumnCount=4
>MultiSelect=.T.
>RowSource=Fname1,fname2,fname3,fname4
>RowsourceTypw=6 - Fields
>
>User are allow to do multiple select in order to print their PO. Here are the code snippet in the THISFORM.cmdPrint.Click() :-
>
>*****
>FOR lnRow = 1 to THISFORM.lstPO.ListCount
> if THISFORM.lstPO.Selected(lnRow)
> y=y+1
> if y > alen(laPOList,1)
> DIMENSION laPOList[y,3]
> endif
> WITH THISFORM.lstPO
> laPOList[y,1]=.List(lnRow,2) && POno
> laPOList[y,2]=.List(lnRow,4) && POStatus
> laPOLIst[y,3]=.List(lnRow,1) && DateRecv
> ENDWITH
> THISFORM.lstPO.Selected(lnRow)=.f.
> endif
>EndFor
>******
>
>The problem is the selected property doesn't work sometime. I meant it didn't return True when the row is selected. There are 3 symptoms :-
>
>1) When multiple selection using [Ctrl] or [Shift], none of the selected property return True.
>
>2) Only the first selected row return True even it's multiple selection.
>
>3) none of the selected property return True even single selection.
>
>Everthing is fine while testing, but when I delivered to user site, this quirks happened sometime. Is this because of the table size, because during my testing, I've only 20 records in the table, and my user currently have 1109 records in their table, or Is this abug in VFP 3.0, or maybe have to play some trick on that.
>
>I've suffered from this for a week, hope anybody can help. many many thanks in advance.