611 ObjectPAL: changeValue() - who triggered it?
VERSIONS: All

SUBJECT: changeValue() - who triggered it?

BY: BERTIL ISBERG
Date: 1 July 1996

QUESTION:
I have a table frame on the form. The 3rd field is the result of 1st multiplied by the 2nd. So, when user change either 1st or 2nd it will change the 3rd one. However, I want to bring up a sub-form when user actually change 3rd field value but not when triggered by 1st or 2nd field change. Any ways of doing this?


If changeValue() is triggered by a calculation self<>active. If the field is changed by the user, self=active.

So in third field's changeValue(), you can use this code

if self'fullname=active'fullname then

the fullName property is used in case two objects in different containers have the same name.

To index