Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic code to find object in form
Message
De
02/09/2008 13:36:06
 
 
À
01/09/2008 14:32:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01343851
Message ID:
01344225
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform