Works like an assignment operator, causing the replacement of blob contents with the data contained in the blob or string referenced in the source parameter.
set(string source);
set(blob *source);
Parameter |
Description |
---|---|
source |
A string or a pointer to a blob that contains the data that replaces the current blob data. |
Returns the blob containing the new data, if successful, or the blob containing the old data, if failed.
blob myblob;
string new_stuff;
myblob = “abcdefg”;
new_stuff = “123456”;
myblob.set(&new_stuff);
Use either the first two lines or the last two lines:
Pointer to object |
Object |
---|---|
|
|
|
|
|
|
|
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |