Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can Setall copy one property to another?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Can Setall copy one property to another?
Divers
Thread ID:
00880459
Message ID:
00880459
Vues:
58
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
Fil
Voir

Click here to load this message in the networking platform