Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some Help with a combo
Message
From
12/12/2001 15:38:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00593462
Message ID:
00593510
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform