Data.DB.TFieldDef.Required
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TFieldDef |
Delphi
property Required: Boolean read GetRequired write SetRequired;
C++
__property bool Required = {read=GetRequired, write=SetRequired, nodefault};
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