Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox Selected property doesn't work.
Message
De
01/04/1997 08:50:45
Hang Zhou
China System Corp.
Nanjing, Chine
 
 
À
01/04/1997 02:45:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00026360
Message ID:
00026377
Vues:
32
ListBox in VFP3.0 is not stable, especially when rowsourcetype is 6(fields), I found when your records are more than a certain number(about 60), it can not work correctly.
Intead of using rowsourcetype, You can use addlistitem to add the value to the listbox


>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform