createChild()  createRoot()

Chapter 5: General Objects and Methods

createChild()

Description

Creates a child node for the current clNdo object. In this version, a pointer to another clNdo is passed to serve as a handle to the newly created child.

Syntax

createChild(clNdo *pClNdo, string childName)

Parameter

Description

pclNdo

Pointer to another clNdo object to hold the newly created child.

childName

String that contains the child name provided.

Return value

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

Usage

Pointer to object

Object

int rv;

clNdo *pclNdo0;

clNdo clNdo1;

rv = pClNdo0->    createChild(&clNdo1, “child”

int rv;

clNdo ClNdo0;

clNdo clNdo1;

rv = clNdo0.createChild    (&clNdo1, ‘child”);





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

View this book as PDF