Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double Combo With More than 500 records in VFP acts funn
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00775915
Message ID:
00776250
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform