PA_GetIntegerField

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetIntegerField (tNum; fNum) short

ParameterTypeDescription
tNumshortTable number of the field to access
fNumshortField number of the field to access
Function resultshortValue of the field

Description

The routine PA_GetIntegerField returns the value of the integer (short) field number fNum of the current record of table number tNum.

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

Example

Check the value of a field.

   short   value;
   value = PA_GetIntegerField( 1, 3 );
   if ( PA_GetLastError() == eER_NoErr )
   {
      if ( ( value < 10 ) || ( value > 20 ) )
      {
         /* . . . */
      }
   }

See Also

PA_SetIntegerField.

Error Handling

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


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next