Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some Help with a combo
Message
 
 
To
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:
00593520
Views:
33
>>>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?
>
>
Yes, Cetin, I made it work. In my original lcSelect I had [where town =']+m.lcTown+['] I added a new property cTown and changed lcSelect to [where town=this.cTown] and now it works fine. However, index created in Init didn't remain. So, I also switched to locate for, since there are only few (max 10) items in the list of abutting towns.


>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

So, I take it as for multilist answer is no (I probably can add such functionality, but it would be too hard). Anyway, I don't think, I need to show number of selected items. Can multiselect grid work with arrays?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform