GetApplication PowerScript function
Description
Gets the handle of the current Application object so you can
get and set properties of the application.
Syntax
|
1 |
<span>GetApplication</span> ( ) |
Return Values
Application. Returns the handle of the current application
object.
Usage
The GetApplication function lets you write
generic code for an application, making it reusable in other applications.
You do not have to code the actual name of the application when
you want to set application properties.
Examples
To change whether Toolbar Tips are displayed, you
can get the handle of the application object and set the ToolbarTips
property:
|
1 |
application app |
|
1 |
app = GetApplication() |
|
1 |
app.ToolbarTips = FALSE |
The previous example could be coded more simply as
follows:
|
1 |
<span>GetApplication</span>().ToolbarTips = FALSE |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest