Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox's drop down list problem.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combobox's drop down list problem.
Miscellaneous
Thread ID:
00773314
Message ID:
00773314
Views:
37
I have a combobox who's dropdown list shows up as empty when it shouldn't.
In the DropDown() method I have something like this:

lnQResult = REQUERY(viewname)

IF lnQResult <> 1
Wait Window ('Requery problem')
ELSE
This.Requery()
wait window ('Made it this far')
This.Refresh()
If This.ListCount = 0
Wait Window ('empty list')
EndIF
EndIf

I get the problem with this sequence of actions:

1. Users clicks the down arrow - the view has a bunch of records, the user selects one.
2. User takes focus off the combobox, then goes back to the combobox and clicks the down arrow.
3. This time, there is only 1 record in the view, so that is what they select.
4. User takes focus off the combobox, then goes back to the combobox and clicks the down arrow.
5. This time the view has a bunch of records, but the list shows up empty! Plus the listcount is NOT equal to zero!!
6. If they click the down arrow a second time, it works.

I can repeat this 100% of the time. Does ANYONE have ANY idea on a work around for this? I've tried it with VFP7 and 8...same problem.

Thanks!
ICQ 10556 (ya), 254117
Next
Reply
Map
View

Click here to load this message in the networking platform