GetInteger

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

GetInteger

Declaration

function GetInteger( sFieldName: String ): Integer;

Description

Extracts the contents of a numeric field as a signed integer value. Integer range is

-32,768 to 32,767.

Parameters

sFieldName: The name of the field.

Return Value

The contents of the field converted to a signed integer value.

Delphi Example

// Get AGE field and add five years

iVal := ApTbl.GetInteger( 'AGE' ) + 5;

C++Builder Example

// Get AGE field and add five years

iVal = ApTbl->GetInteger( "AGE" ) + 5;

See Also

GetDouble, GetLong