Data.DB.TBooleanField.SetAsString
Delphi
procedure SetAsString(const Value: string); override;
C++
virtual void __fastcall SetAsString(const System::UnicodeString Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Data.DB.pas Data.DB.hpp |
Data.DB | TBooleanField |
Description
Sets the value of the Boolean field based on the given string Value.
The SetAsString method sets the value of the Boolean field according to the given Value passed in as a string representation of a Boolean value. If Value is an empty string, then the field is cleared.
The accepted values for the Value parameter are False and True. If an unaccepted string is passed in, then an exception is raised.