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