Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox - Looks like a bug
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Listbox - Looks like a bug
Divers
Thread ID:
00204448
Message ID:
00204448
Vues:
51
In some cases my listbox Listcount property is different from
MyTable reccount(), even if there are no deleted records in
the table. My listbox rowsourcetype=2 (alias) and rowsource=mytable.

Here is what I found:
Create a form.
Add a listbox control.
Add the table OrdItems (VFP\Samples\Tastrade\data\orditems.dbf) to the form.

Add a watch point in the debug to Thisform.List1.ListCount
Add a watch point in the debug to reccount()

Run the form, both values in the debuger have the same value: 2821.
Click on the listbox scroll bar and go to the bottom:
SURPRISE! now Thisform.List1.ListCount is equal to 2820
and -of course- reccount() still 2821

Any ideas?
Is this a known bug?
Am I doing something wrong?
Hector Correa
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform