PA_SetLongintField

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

version 2003


PA_SetLongintField (tNum; fNum; value)

ParameterTypeDescription
tNumshortTable number of the field to access
fNumshortField number of the field to access
valuelongNew value for the field

Description

The routine PA_SetLongintField sets the value of the long integer field number fNum of the current record of table number tNum to value.

If the field is not a long integer field, the routine does nothing and sets an error in PA_GetLastError().

Example

Put 2 shorts in a long integer field.

   void Put2IntegersInALongField(short tNum, short fNum, short first, short second)
   {
      PA_SetLongintField(tNum, fNum, ((first & 0x0000FFFF) << 16) | (second & 0x0000FFFF));
   }

See Also

No reference.

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