Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic code to find object in form
Message
From
02/09/2008 13:36:06
 
 
To
01/09/2008 14:32:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01343851
Message ID:
01344225
Views:
18
>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:
* Do the default stuff to assign the new value

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

Click here to load this message in the networking platform