WideStudio Logo
Programming Guide
WideStudio Index
Table of contents

How to get the children of the instance

You can get the children which the instance contains with the following method.

The method Description
WSCbase getChildInstance(char*) Returns the child by the instance name

How to get the child by the specified name

You can get the child by the specified name with the method: getChildInstance()

public class event_procedure {
  protected static void event_procedure(WSCbase object){
    // get the child which name is "newvbtn_001"
    WSCbase child = object.getChildInstance("newvbtn_001");
    if (child != null){
      // the child exists.

In the example, WSCbase.getChildInstance() seeks the child which name is "newvbtn_001" from the instance: "object" recursively, and returns it if finds or returns nil if not.

Document Release 3.80 for WideStudio ver 3.80, Jan 2005

WideStudio documents index | Table of contents

Copyright(C) WideStudio Development Team, 1999-2005 Last modified: Jan 05, 2005