Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can Setall copy one property to another?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Can Setall copy one property to another?
Miscellaneous
Thread ID:
00880459
Message ID:
00880459
Views:
57
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 :)
Next
Reply
Map
View

Click here to load this message in the networking platform