Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need some Help with a combo
Message
De
12/12/2001 15:38:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00593462
Message ID:
00593510
Vues:
27
This message has been marked as the solution to the initial question of the thread.
>>Actually not similar to your solution. If you're doing a complete reselection of SQL what the requery() is for ? I'd simply assign SQL once in init and requery() when params changes. You could also do an index in init once and only requery()+seek in ChangeTown.
>
>I need to do complete reselection, since town parameter is different each time. Is it possible to program differently?


No you don't. Check FoxyClasses MoverListXX sample. Combos there use SQL rowsource assigned once in init and dynamically change content + what's selected based on selections related in another combo. ie: If you select 'Brasil' as country you get 'Sao Paulo' in city list and could select it. If you go back to country and select 'All', 'Sao Paulo' remains selected. If you choose 'Germany', city list selection resets.



>
>For now I will remove requery() and experiment, thanks.
>
>Sorry for unrelated question: is where a way to retrieve number of selected items in Multiselect list without looping through all items?


Yes if you don't use listboxes :) Again check FoxyClasses MoverListXX sample.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform