API:Data.DB.TStringField.SetAsBoolean

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetAsBoolean(Value: Boolean); override;

C++

virtual void __fastcall SetAsBoolean(bool Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Data.DB.pas
Data.DB.hpp
Data.DB TStringField

Description

Sets the value of the field with the given Boolean value.

Data.DB.TStringField.SetAsBoolean inherits from Data.DB.TField.SetAsBoolean. All content below this line refers to Data.DB.TField.SetAsBoolean.

Sets the value of the field with the given Boolean value.

Descendants of TField that represent Boolean fields override the SetAsBoolean method to set the value of the field with the given Boolean Value.

Trying to call the SetAsBoolean method raises an exception.

See Also