PA_SetPackedRecord

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

version 2003


PA_SetPackedRecord (tNum; buffer; bufferSize)

ParameterTypeDescription
tNumshortTable number
buffervoid *Buffer to the memory block containing data
bufferSizelongBuffer 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

PA_GetPackedRecord.

Error Handling

Use PA_GetLastError to see if an error occurred (bad table number, not enough memory, etc.).


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