| WideStudio 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
> Mpfc::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: WSCbase::getChildInstance()

>     def event_procedure(object)
>       # get the child which name is "newpbtn001"
>       child = object.getChildInstance("newpbtn001")
>       if child != nil
>         # the child exists.
>         child.setVisible(Mpfc::True)
>       end
>     end

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

Document Release 3.70 for WideStudio ver 3.70, May 2004

WideStudio documents index | Table of contents

Copyright(C) WideStudio Development Team, 1999-2004 | Last modified: May 25, 2004