rollback()  String objects

Chapter 5: General Objects and Methods

setData()

Description

Sets the message data for the next put operation.

Syntax

int setData(string data);int setData(string *data);int setData(blob *data);

Parameter

Description

data

Data to put in the Open Transport message buffer. This can be a string, a pointer to a string, or a pointer to a blob.

Return value

Integer. Returns 1 for success, and 0 for failure.

Usage

Pointer to object

Object

pot->setData    ("this is some data");

my_otobj.setData    (“this is some data”)

blob blobData;

string strData;strData = "some data";pot->setData(&strData);

blobData.load("datafile.dat");my_otobj.setData(&blobData);





Copyright © 2005. Sybase Inc. All rights reserved. String objects

View this book as PDF