SOURCE CSDN Forum:
Thisform.setall
Thisform.setall ("Enabled",. F., "TextBox")
SQL Code
The SetAll method specifies a property setting for all controls in a container object or for a class of controls. Syntax Container.setall (cproperty, Value [, Cclass]) parameter Cproperty: The property to set. Value: The new value of the property, and the data type of value depends on the property being set. Cclass: Specifies the class name, which is the base class for the object and cannot be a Visual FoxPro base class. Description use the Set all method to set a property for all controls in the container or for some type of control. For example, to set the BackColor property of a Column object in table control to red, you can use the following commands: Form1.Grid1.SetAll (BackColor, RGB (
255 ,
0 ,
0 ) , Column) can also set object properties that are contained by other objects in the container. To set the ForeColor property of the header contained in each Column object in table control to green, you can use the following commands: Form1.Grid1.SetAll (' ForeColor ', RGB (
0 ,
255 ,
0 ), ' Header '