Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Can Setall copy one property to another?
Hi,
I have added a lSaveReadOnly property to my textboxes and saved the old value of their ReadOnly property. When the user clicks a button, I want to set their ReadOnly property to the value of their lSaveReadOnly property. I have tried:
thisform.setall("ReadOnly",lsavereadonly,"txtedit")
and
thisform.setall("ReadOnly",this.lsavereadonly,"txtedit")
but neither seems to work. The following works:
thisform.setall("ReadOnly",.f.,"txtedit")
but I want to use the value of the lSaveReadOnly property rather than a hard-coded .f.
Can setall be used to access an existing property (i.e., lSaveReadOnly) of the contained objects in the value parameter of the setall method?
Thanks much for your help, John :)
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement