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

CloseModal

Send comments on this topic.

 

Description:

This method allows you to close the modal window through code. Overloads let you pass a value back to the method that opened the modal window.

Syntax:

CloseModal ()
CloseModal (double a_return)
CloseModal (long a_return)
CloseModal (powerobject a_return)
CloseModal (string a_return)

Argument

Description

a_return (optional)

 

Pass in a double, long, powerobject, or string value to return back to the calling method (i.e. the method that opened the modal window using the OpenModal function). You can access this value the same as if you were to have called the CloseWithReturn PB method, using the global Message object (e.g. Message.StringParm)

Return Value:

Returns 1.

Usage:


Copyright © 2021 Werysoft Inc.