>Hi
>
>I have a form called OFFICES, in which I have three combo boxes I recently added. My problem is that after I select my values for the last two and close the form -- when I reopen the form the data is not displayed in the combo. However, it is being recorded in the table.
< snip >
Hi, Jason,
Comboboxes have a problem with timing out when user code takes too long to execute. Code in the Gotfocus(), Interactivechange() and ProgrammaticChange() methods can cause the problem. One of the symptoms is that the closed box does not display a value (interactive- and programmaticchange()), another is that the box does not drop when click()ed until it is click()ed again (gotfocus()).
I once experimented half a day with a combo box and was able to identify the specific line of perfectly valid code in an interactivechange() that caused the problem -- when the line was removed the box did not time out and displayed perfectly. It pays to code very tightly when in combobox methods.
Try this: at the end of your interactivechange() code, put a "combobox::refresh()" instruction; not a DoDefault(), but a specific call to the VFP base class combobox refresh() method). In most instances I have found this to cure problems with the display.
Good luck,
regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.