extend()  jam()

Chapter 5: General Objects and Methods

grow()

Description

Increases the blob to the size of the value in length. The new space is always placed at the end of the existing blob data. The length value must be greater than the current size of the blob or the method fails. The new space is initialized to null.

Syntax

grow(int length);

Parameter

Description

length

How much to increase blob size.

Return value

Integer. Returns the new size of the blob, if successful, and -1, if failed.

Example

Example 45

myblob.grow(500);

Usage

Pointer to object

Object

int newsize;

myblob.grow(newsize);

newsize = 30;

pb->grow(newsize);





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

View this book as PDF