General information
Category:
Forms & Form designer
Title:
How can I disable fields on a Pageframe
If a user has read-only rights, I want to disable fields on a form. I am using the following code to do this:
FOR i = 1 TO THISFORM.CONTROLCOUNT
IF INLIST(THISFORM.CONTROLS(i).BASECLASS, 'Checkbox','Textbox', 'Combobox')
THISFORM.CONTROLS(i).ENABLED = .F.
ENDIF
ENDFOR
This works great...except for any fields on a Pageframe on the form. Any ideas how to disable those fields without specifying each field individually?
Thanks,
Doug
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only