findChild()  findChildR()

Chapter 5: General Objects and Methods

findChildAttribute()

Description

Finds a particular child and attribute from the current clNdo. The found child is then saved to a clNdo object at the address passed to this method.

Syntax

findChildAttribute(clNdo *pClNdo, 
                string childName,
                string Attribute,
                 string AttributeValue)

Parameter

Description

pClNdo

Address of a clNdo object to save the found child of this NDO.

childName

String that contains the child name to find.

Attribute

String that contains the attribute.

AttributeValue

String that contains the value of the attribute.

Return value

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

Usage

Pointer to object

Object

clNdo NDO_HOLD_1;clNdo *pNDO_Child_01;

//intermediate code not shown

pNDO_Child_01->    findChildAttribute    (&NDO_HOLD_1,”PINTO”,    ”COLOR”,”GREEN”);

clNdo NDO_HOLD_1;clNdo NDO_Child_01;

//intermediate code not shownNDO_Child_01.findChildAttribute    (&NDO_HOLD_1,”PINTO”,    ”COLOR”, ”GREEN”);





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

View this book as PDF