set()  snip()

Chapter 5: General Objects and Methods

size()

Description

Calculates the number of characters of data in a blob.

Syntax

size();

Return value

Integer. Returns the number of characters in the blob, or 0 if empty for success, and a negative number, if failed.

Usage

Pointer to object

Object

int size;

size = pb->size();

size=pbsize();

Examples

Example 49

blob myblob;
int num;
myblob = “abcdefg”;
num = myblob.size();




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

View this book as PDF