An application is a collection of PowerBuilder windows and objects that provide functionality for user activities, such as order entry or accounting activities. The Application object is the entry point into the applications.
When a user runs an application, the Open event of the Application object is fired. The Open event triggers the script that initiates all the activity in the application.
Application property |
Datatype |
Description |
---|---|---|
AppName |
String |
Specifies the name of the Application object. |
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
DDETimeOut |
Integer |
Specifies the number of seconds PowerBuilder acting as the DDE client waits before giving up when trying to communicate with a server using DDE (the default is 20 seconds). |
String |
User-readable name for your application. This name is displayed, for example, in OLE dialog boxes that show the application’s name. If you do not specify a value, the value of AppName is used for DisplayName. |
|
DWMessageTitle |
String |
Specifies the title of the message box for any runtime DataWindow® errors encountered in the application. If you change the value of this property in script, the new value is recognized only for DataWindows created (or painted) after the new value is set. |
Boolean |
Specifies whether you want PowerBuilder to free database interface libraries upon disconnecting from the database. The default is FALSE (PowerBuilder does not free the libraries upon disconnecting). |
|
MicroHelpDefault |
String |
Specifies the default text of the MicroHelp object (the MicroHelp text that displays when you initiate a PowerBuilder session). The default is Ready. |
RightToLeft |
Boolean |
Specifies that characters should be displayed in right-to-left order in MessageBoxes displayed when you call the MessageBox function. The application must be running on an operating system that supports right-to-left display. Values are:
|
ToolbarFrameTitle |
String |
Specifies the text that displays as the title for the FrameBar when it is floating. |
ToolbarPopMenuText |
String |
Allows you to change the toolbar location text (Left, Top, Right, Bottom, Floating) in the Application’s toolbar pop-up menu. Specify the text as a comma-separated list of items. |
ToolbarSheetTitle |
String |
Specifies the text that displays as the title for the SheetBar when it is floating. |
ToolbarText |
Boolean |
Specifies whether the text associated with the items in the toolbar displays. Values are:
|
ToolbarTips |
Boolean |
Specifies whether PowerTips display when text is not displayed on the buttons. Values are:
|
ToolbarUserControl |
Boolean |
Specifies whether users can use the toolbar pop-up menu to hide or show the toolbars, move toolbars, or show text. Values are:
|
Application event |
Occurs |
---|---|
When the user closes the application. |
|
When the Idle function has been called in an Application object script and the specified number of seconds have elapsed with no mouse or keyboard activity. |
|
When the user runs the application. |
|
When a serious execution time error occurs (such as trying to open a nonexistent application). If there is no script for this event, PowerBuilder displays a message box with the PowerBuilder error number and error message text. For information about error messages, see the Users Guide. |
Application function |
Datatype returned |
Description |
---|---|---|
String |
Returns the class of the Application object. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Boolean |
Adds an event to the end of the message queue for the Application object. |
|
Integer |
Sets the PBD library list in an executable. This function can still be used but should be replaced by the system function SetLibraryList. |
|
Integer |
Sets up a pool of database transactions for an application. SetTransPool allows you to minimize the overhead associated with database connections and also limit the total number of database connections permitted. |
|
Integer |
Triggers a specified event in the Application object and executes the script for the event. |
|
Object |
Returns the type of the Application object. |