Appends data in an item to a blob.
add(string item);
add(string &item);
add(blob &item);
Parameter |
Description |
---|---|
item or &item |
Data (or the address of the data) to append to the current blob. Can be the address of a blob or a string, the string itself, or a literal value. |
If successful, returns a blob containing the existing and appended data. If failed, returns a blob containing the existing data before the blob() method was called.
blob my_blob; //current blob object
string new_stuff; //string to hold data to append
my_blob = “a bunch of data”;
new_stuff = “append this stuff”;
my_blob.add(new_stuff); //appends data in new_stuff to my_blob
Pointer to object |
Object |
---|---|
|
|
|
|
|
|
|
|
The add() method does not support
using the blob itself as an argument. You must
use the blob address.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |