Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assign Event
Message
De
16/09/1998 11:20:31
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
15/09/1998 22:56:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00137057
Message ID:
00137305
Vues:
19
Steve;

I tried the LostFocus() and it produces the behaviour I expected. I was testing out an interface thought that would indicate via slight changes in background colour which data fields have changed from the original value. I thought I could encapsulate all of the behaviour in the value_assign method but this doesn't work. The value property is being changed but a change during data entry is not the same as an explicit assignment.

I think this is a valuable insight into understanding the workings of these accessor events.

The bottom line is, changing the value property of a control during data entry does not invoke the _assign method. After some thought, I think this makes sense because the value of the control changes with each keystroke so deciding when the event should occur would be problematic. Adding my own call to lost focus seems suitable.

Thanks.

>I think this behavior is correct since the .Value property isn't being explicitly changed. But try this in the LostFocus()
>  THIS.Value= THIS.Value
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform