>Hi,
>
>Boris
>
>Ok I have a container with a property lDatachanged. The Container has some more objects one of the objects is bound to a datasource Upon changement of the datasource the lDatachanged is set to .t.
>This container is placed on different pages on the same form. In each case the objects are bound to their own datasource.
>There is a method on the form doing something when one of the lDatachanged properties is .t. or doing something not when lDatachanged is .f.
>so it needs to check the lDatachanged property on the various containers which are placed inside other containers on page's or pages-pages e.s.o.
I would handle this differently. Add a form-level property. Then, in the container, add an assign method for the lDataChanged property. In the assign method (lDataChanged_Assign), set the form-level property appropriately:
IF This.lDataChanged AND PEMSTATUS(ThisForm, "lDataChanged", 5)
ThisForm.lDataChanged = .T.
ENDIF
This code assumes that you want the form-level property to reflect data changing in any of the containers and that you'll reset the form-level property after you take appropriate action.
Tamar