sx_GetLogical

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_GetLogical

VB Declaration

Declare Function sx_GetLogical Lib "Apollo9.dll"

(ByVal cpFieldName As String)

As Integer

C Declaration

SHORT FAR PASCAL sx_GetLogical

(BYTEP cpFieldname);

Description

Determines whether a logical field contains a True or False value.

Note: Many of the sx_Get* functions can be replaced with a single call to sx_GetVariant. The sx_Get* functions that return specific data types are primarily for C programmers who cannot use sx_GetVariant.

Parameters

cpFieldName: The name of the field.

Return Value

True if the field evaluates as True, and False if not.

VB Example

' use logical values to set radio buttons

CarOwner.Value = -sx_GetLogical("OWNS_AUTO")

HomeOwner.Value = -sx_GetLogical( "OWNS_HOME" )

C Example

SHORT iValue;

iValue = sx_GetLogical("married");

See Also

sx_GetInteger