Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assign Event
Message
From
16/09/1998 14:02:53
 
 
To
16/09/1998 11:20:31
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00137057
Message ID:
00137393
Views:
18
You know, you might be able to do something slick with the InteractiveChange() event such that as soon as the user types something new, boom, color change.


>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
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform