NewBlob
Description
Creates a new blob and duplicates a buffer for the new blob
data.
Syntax
|
1 |
NewBlob (const void* bin, pblong len) |
|
Argument |
Description |
|---|---|
|
bin |
A void pointer that points to the source |
|
len |
The length in bytes of the data in the |
Return value
pbblob.
Examples
If the blob value in the PBCallInfo structure is null, this code
creates a new blob value with four bytes in the pArguments array;
otherwise, it sets the blob value in the pArguments array to the value
in the PBCallInfo structure:
|
1 2 3 4 5 |
if (ci->pArgs->GetAt(i)->IsNull()) pArguments[i].blob_val = Session->NewBlob("null", 4); else pArguments[i].blob_val = ci->pArgs->GetAt(i)->GetBlob(); |
Usage
The buffer containing the new blob data is freed when
PopLocalFrame is called.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest