Restart – PB Docs 2021

Restart

PowerScript function

Description

Stops the execution of all scripts, closes all windows (without
executing the scripts for the Close events), commits and disconnects from
the database, restarts the application, and executes the application-level
script for the Open event.

Syntax

Return value

Integer. Returns 1 if it succeeds and -1 if it fails. The return
value is usually not used.

Usage

You can use Restart in the application-level script for the Idle
event to restart the application after a period of user inactivity, a
typical behavior of kiosk applications.

Examples

In the application-level script for the Idle event, this statement
restarts the application:

See also

HALT


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x