PA_GetBooleanField


version 2003


PA_GetBooleanField (tNum; fNum) → char

Parameter Type Description
tNum short Table number of the field to access
fNum short Field number of the field to access
Function result char Value of the field

Description

The routine PA_GetBooleanField returns the value of the boolean field number fNum of the current record of table number tNum .

If the field is not a boolean field, the routine returns 0 and an error code in PA_GetLastError .

Example

Check the value of a field.

   char   value;
 
   value = PA_GetBooleanField( 1, 3 );
   if ( PA_GetLastError() == eER_NoErr )
   {
      if ( value )  // The field is "true"
      {
         /* . . . */
      }
   }

See Also

PA_SetBooleanField .

Error Handling

Use PA_GetLastError to see if an error occurred ( eER_InvalidFileNumber , eER_InvalidFieldNumber ).