getData()  hasMessage()

Chapter 5: General Objects and Methods

getProp()

Description

Gets one of the message properties from the list.

Syntax

getProp(proptype ptype, string propname, string *propvalue);

Parameter

Description

ptype

Property type to get. These include:

  • OT_PROP_CONTEXT

  • OT_PROP_TRANSPORT

  • OT_PROP_GET

  • OT_PROP_PUT

propname

Name of the property to select.

propvalue

Pointer to the string that receives the value of the property.

Return value

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

Usage

Pointer to object

Object

string myPropValue;

pot->getProp    (OT_PROP_TRANSPORT,    "NNOT_TIL_OPEN_TSI”,    &myPropValue);

string myPropValue;string propname;propname = “NNOT_TIL_OPEN_TSI”;

   my_otobj.getProp    (OT_PROP_TRANSPORT,propname,    &myPropValue);





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

View this book as PDF