version 2003
PA_SetPackedRecord (tNum; buffer; bufferSize)
Parameter | Type | Description | |
tNum | short | Table number | |
buffer | void * | Buffer to the memory block containing data | |
bufferSize | long | Buffer size in bytes |
Description
The routine PA_SetPackedRecord fills all the fields of the current record of the table number tNum, using the data passed in buffer of size bufferSize.
The routine does nothing if there is no current record when the call is made.
The buffer to the block of data containing the concatenation of all fields of a record must have been previously obtained using PA_GetPackedRecord. The table used when calling PA_GetPackedRecord and PA_SetPackedRecord must have an identical table definition. Passing a buffer to an other type of data may provoke unexpected results.
Example
See PA_GetPackedRecord for an example of use
See Also
Error Handling
Use PA_GetLastError to see if an error occurred (bad table number, not enough memory, etc.).