load()  save()

Chapter 5: General Objects and Methods

paste()

Description

Inserts the contents of a blob or string into the blob, starting at the position specified in the offset parameter. The first blob character is always at offset 0.

Syntax

paste(int offset, {blob | string} *source);

Parameter

Description

offset

Position to start inserting the data. The first character in a blob is at offset 0.

source

Address of the blob or string from which to copy the data.

Return value

Integer. Returns the number of characters of data pasted into the blob.

Examples

Example 47

blob myblob;
string new_stuff;
myblob = “abcdefg”;
new_stuff = “123456”;
myblob.paste(4, &new_stuff);

Usage

Pointer to object

Object

pb->paste(10, &otherblob);

myblob.paste(10, &otherblob);

pb->paste(5, &physician_name);

myblob.paste(5,&local_string);





Copyright © 2005. Sybase Inc. All rights reserved. save()

View this book as PDF