<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > GetLogical |
Declaration
function GetLogical( sFieldName: String ): WordBool;
Description
Determines whether a logical field contains a True or False value.
Parameters
sFieldName: The name of the field.
Return Value
True if the field evaluates as True, and False if not.
Delphi Example
// Use logical values to set radio buttons
with ApTbl do
begin
CarOwner.Value := GetLogical( 'OWNS_AUTO' );
HomeOwner.Value := GetLogical( 'OWNS_HOME' );
end;
C++Builder Example
// Use logical values to set radio buttons
CarOwner->Value = ApTbl->GetLogical( "OWNS_AUTO" );
HomeOwner->Value = ApTbl->GetLogical( "OWNS_HOME" );
See Also