Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo will not display value after closed
Message
De
26/05/1999 14:41:26
 
 
À
25/05/1999 23:19:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00222776
Message ID:
00223109
Vues:
25
>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.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform