|
![]() |
![]() |
version 2003
PA_SetLongintField (tNum; fNum; value)
Parameter | Type | Description | |
tNum | short | → | Table number of the field to access |
fNum | short | → | Field number of the field to access |
value | long | → | New 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
).