Parent / EndParent

Item Description

Use with:

Windows

SecureLogin version:

All

Type:

Dialog Specifier

Usage:

Parent/EndParent

Arguments:

None

Description:

The Parent command begins a parent block in which the statements act upon a window's parent. The commands that follow the Parent command function identically to commands used in a dialog block. If they evaluate to False, the script ends.

For example, the command Title in a parent block returns False if the title of the parent does not match the one specified in the command.

However, if a command in a parent block returns a False result, the execution does not skip to the next parent block, as it would in a dialog block. Instead, the parent block proceeds to the next dialog box, or the script terminates if no dialog block exists.

The EndParent command terminates a parent block and sets the subject of the script back to the original window.

You can nest the Parent command, allowing the parent block to act on the parent of the parent.

Example:

Dialog  
 Parent
  Parent   
   Title "Login"  
   Ctrl #1 
  EndParent 
 EndParent
EndDialog