first()  getAttributeCount()

Chapter 5: General Objects and Methods

getAttribute()

Description

Gets the value of a specific node attribute.

Syntax

getAttribute(string attribute, string *pValue)

Parameter

Description

attribute

String to the attribute desired.

pValue

Pointer to the string to store the attribute data.

Return value

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

Usage

Pointer to object

Object

clNdo *pNDO_HOLD_1;string tempString1;

//intermediate code not shown

pNDO_HOLD_1->getAttribute    (“TYPE”,&tempString1);

clNdo NDO_HOLD_1;string tempString1;

//intermediate code not shown.NDO_HOLD_1.getAttribute    (“TYPE”,&tempString1);





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

View this book as PDF