LastModalChildIsOrInheritsFrom method (WinStudio scripts)

Applies to

IWSForms interface

Description

This method takes a single string parameter for the name of the form from which the current LastModalChildName's form descends.

Syntax

ThisForm.LastModalChildIsOrInheritsFrom("Dialog")

where Dialog is a single string parameter for the name of the form from which the current LastModalChildName's form descends.

Remarks

The function must take a form name string parameter, and return true if the form's LastModalChildForm either is, or descends from (per the BaseForm property) the form named in the string parameter.

This method pulls up the WSForm object for the current form's last modal child.

This method gathers the child form's ancestors using the form's existing HierarchyMap property.

Example

ThisForm.LastModalChildIsOrInheritsFrom("WBCriticalNumberIDOSetup")