getParent()  isFirst()

Chapter 5: General Objects and Methods

grabAttribute()

Description

Retrieves an attribute from the node that the current clNdo is associated with and stores the attribute tag and value in the two string pointers that are passed to it.

Syntax

grabAttribute(int attributeIndex,
             string *attributeTag,
             string *attributeValue)

Parameter

Description

attributeIndex

Index of the attribute pair to retrieve.

attributeTag

Pointer to a string to hold the attribute tag at a particular index.

attributeValue

Pointer to a string to hold the attribute value at a particular index.

Return value

Integer. Returns 1 for success, 0 if the attributeIndex is out of range.

Usage

Pointer to object

Object

clNdo *pCINdo1;

string tempString1;

.

.

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

clNdo clNdo1;

string tempString1;

.

.

cINdo1.getAttribute    (“TYPE”,&tempString1);





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

View this book as PDF