Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Value synchronization
Message
De
25/09/2002 07:41:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00704046
Message ID:
00704137
Vues:
16
>>Sometimes when I ask for TextBox.Value, I get a different result than the underlying field, MyTable.MyField. This happens when the user just changed the value.
>>
>>If I postpone the check, for instance with a Timer, I get consistent results. Is there a better way to do this?
>>
>>TIA, Hilmar.
>
>Hilmar,
>
>The controlsource is updated after the Valid event fires. Prior to that the value property and controlsource may have different values.

Thanks.

It makes sense, too, if you put it this way.

Now, is there a way to force this synchronization? Perhaps I should invoke MyTextBox.Valid()? Or SomeOtherTextBox.SetFocus()?

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform