PA_SetBlobHandleVariable

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

version 2003


PA_SetBlobHandleVariable (aVariable; hBlob)

ParameterTypeDescription
aVariablePA_Variable *Pointer to the variable to access
hBlobPA_HandleNew value of the handle

Description

The routine PA_SetBlobHandleVariable sets the handle of the variable pointed to by aVariable to the handle hBlob.

This is useful for memory optimization: PA_SetBlobVariable duplicates the BLOB, since PA_SetBlobHandleVariable changes only the value of the handle to the BLOB data.

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.

IMPORTANT NOTE

After the call, the handle belongs to the variable.

Example

See PA_SetStringVariable

See Also

PA_SetBlobVariable.

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