PA_SetBlobVariable

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

version 2003


PA_SetBlobVariable (aVariable; newBlob; size)

ParameterTypeDescription
aVariablePA_Variable *Pointer to the variable to access
newBlobvoid *New value for aVariable
sizelongSize (in bytes) of newBlob

Description

The routine PA_SetBlobVariable sets the content of the BLOB variable pointed to by aVariable to the data pointed to by newBlob.

Pass a pointer to the new data value in newBlob and its size in size.

WARNING

The kind of of the variable pointed to by aVariable is set to eVK_Blob by the routine, even if it was not its previous kind.

Make sure that you do not change 4D variable kinds (using PA_GetVariable), especially in compiled mode.

Note that PA_SetBlobVariable duplicates newBlob, which still belongs to the plug-in after the call. To give the data without duplicating it, use PA_SetBlobHandleVariable.

Example

See PA_SetStringVariable

See Also

PA_SetBlobHandleVariable.

Error Handling

PA_GetLastError keeps the last error that occurred before calling the routine.


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