Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5 form problems - setting values through code
Message
De
18/12/1996 13:31:22
Dan Rochman
Rochman Universal Doors, Inc.
Richmond, Virginie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
VFP5 form problems - setting values through code
Divers
Thread ID:
00015520
Message ID:
00015520
Vues:
84
I’ve got a form (part of a formset) in VFP5 under WinNT3.51. Things start out with the focus set to a textbox - based on the textbox input, I want several other controls on the form to have their values changed programmatically.

The *problem* is that if I leave the textbox by clicking on another control, everything works fine, but if I leave by pressing TAB, not all other controls get updated.

In particular, I’ve got a combobox with a SQL rowsourcetype that I’m trying to set the value of. There’s a line in the Valid code of the textbox that’s close enough to:
thisform.cboMainLite.Value = cNewMLValue

Again, this works FINE if I click to another control, but fails if I leave the textbox by tabbing (all other things being, as far as I can tell, equal). By failing I mean that the combobox displays nothing - although the debugger says that the Value *and* DisplayValue properties are what they should be. Forcing a form Refresh doesn’t seem to help.

Any replies greatly appreciated!
-dan rochman
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform