Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lookup combo requery problem
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Lookup combo requery problem
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01449302
Message ID:
01449302
Views:
254
All:

I have a form with several lookup combos whose row source and type are set in their init() as selects from a "table of tables" with a code and description. There is no code in the Requery(). All OK.

On one of the cbo controls I placed code in the RightClick() to call a maintnance form for the "table of tables"

This (not modal) maintenance form loads OK, I make a change on the description field, close the form, offers to save, accept the save, back to the cbo.RightClick() code, where I call This.Requery()

Nothing changes. I drop the cbo and it is the same.

When I run the form again, the new description appears OK.

Running with the debugger shows that the non-modal form is called, and the bebugger stops on the call to the requery(). I make the change on the modal form and close it. I step the requery(), which has no code, and stop on the next line. Looking at the cursor that the select generates does show the new description, so it appears that the default action on the requery() did occur, but the combo is not changed.

What am I missing?

Do I need to move the select code into the requery()?

Thanks,

Al Allison
Next
Reply
Map
View

Click here to load this message in the networking platform