RAD Studio |  |

Setting Field Component Properties at Runtime
See Also
Collapse All

You can use and manipulate the properties of field component at runtime. Access persistent field components by name, where the name can be obtained by concatenating the field name to the dataset name.

For example, the following code sets the ReadOnly property for the CityStateZip field in the Customers table to True:

Copy Code

    CustomersCityStateZip.ReadOnly := True;

Copy Code

    CustomersCityStateZip->ReadOnly = true;

And this statement changes field ordering by setting the Index property of the CityStateZip field in the Customers table to 3:

Copy Code

    CustomersCityStateZip.Index := 3;

Copy Code

    CustomersCityStateZip->Index = 3;

See Also

Setting Display and Edit Properties at Design Time

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!