GetLogical

<< Click to Display Table of Contents >>

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

GetInteger

URL of this topic:
https://www.apollodb.com/docs/vcl/index_vcl.html?apollovcl_getlogical.htm