restart()  Protocol objects

Chapter 3: Message Objects and Methods

send()

Description

Sends data through the clcomm object.

Syntax

send({string | blob} data);

Parameter

Description

data

Pointer to the string or blob object that contains the data you want to send.

Return value

Integer.

Returns any positive value for success, which indicates the length of the data sent to clcomm. However, a positive return value does not guarantee that the data was sent successfully through the clcomm object to the endpoint.

Returns a void for failure.

Usage

In a function

In a control flow

If not using an existing data object, declare a string or blob object. string mydata; mycomm.send(&mydata); where mycomm is the name of the communications object.

1. Click object. 2. Select the communications object from the drop-down list. 3. Select send from the method drop-down list. 4. In the Command Arguments field, type the name of the data object containing the data to send. 5. In the Command Argument Declaration field, type string*data, where “data” is the name of the data object. If using a blob data object, type blob *data.





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

View this book as PDF