Data.DB.TFieldDef.Required
Delphi
property Required: Boolean read GetRequired write SetRequired;
C++
__property bool Required = {read=GetRequired, write=SetRequired, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Data.DB.pas Data.DB.hpp |
Data.DB | TFieldDef |
Description
Indicates whether a value for the physical field in the underlying table is required.
Use Required to find out if a field in a dataset must have a value. If Required is true, the field must have a value. If Required is false, the field can be left blank.
When adding field definitions to a dataset, set Required to specify whether blank values for the new field should be prohibited.
See Also
Code Examples