Navigation: Ultimate Suite for PowerBuilder Help > PowerModal > Functions >

OpenModal

Send comments on this topic.

 

Description:

Opens a modal window.

Syntax:

openmodal (ref window aw_window)
openmodal (ref window aw_window, string as_parm)
openmodal (ref window aw_window, string as_parm, boolean ab_displayclose)
openmodal (ref window aw_window, boolean ab_displayclose)
openmodal (ref window aw_window, long as_parm, boolean ab_displayclose)
openmodal (ref window aw_window, double as_parm, boolean ab_displayclose)
openmodal (ref window aw_window, powerobject as_parm, boolean ab_displayclose)

Argument

Description

aw_window

The object that will be opened as a modal window

as_parm (optional)

Pass in a double, long, powerobject, or string value which will be passed to aw_window. Similar to calling the PB OpenWithParm method.

ab_displayclose (optional)

Indicates whether a close "X" button should display in the uppper right corner of the screen. This button will allow the user to close the modal window. If enabled, the user can also close the modal window by clicking outside of the window on the modal overlay. 

Return Value:

Returns 1 if the window was able to open successfully. -1 if a modal window is already open (only one modal window can be opened at one time)

Usage:


Copyright © 2021 Werysoft Inc.