Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Combo With More than 500 records in VFP acts funn
Message
 
To
10/04/2003 04:31:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00775915
Message ID:
00776250
Views:
16
I have 1500 in a 2 column combo - but the rowsourcetype is none and the list is built using addlistitem. The load is fast and the sequential key behavior works as advertised.
PROCEDURE BuildcmbSupplier(oform,ocmbSupplier)
SELECT Supplier
GO top
*!* use this code if you want to eliminate the IF statemet in the SCAN
*!* set order to supname
*!* scan while empty(supname)
*!* endscan
WITH ocmbSupplier
SCAN
if empty(supname)
   * Leave it alone
else
   .addlistitem(supname,RECNO(),1)
   .addlistitem(supno,RECNO(),2)
endif
ENDSCAN
ENDWITH
ENDPROC
>I have found a problem in the combos tested on vfp8...When the combo has a lot of items if you press the arrow to drop down the list then the combo list behaves funny. If you try to click an item it selects the wrong one and using the down arrow key moves through the items without changing the whole list. However, If you press the scroll bar first then everything works.
>
>It is reproducable as follows..
>
>1) place a combo on a form..
>2) Set the following properties...
>columncount=2
>columnwidths=100,100
>fontsize=8
>rowsource=select supname,supno from supplier where not empty(supname) into cursor csuppplier
>rowsourcetype=3
>
>The supplier table has 2894 records but I tested it with 1500,1000, then 500
>with 500 the problem goes away.
>
>Does anyone have a possible workaround..
>
>I tried the same form in vfp7 and the problem does not occur...
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform