Appendix C. Variables in application object

When you right click an application object in the system treeview and then select Edit Source, the source code editor will be opened and the source code of the application object will be shown in the editor.

The following table lists the variables available in the application object and its corresponding IDE options. If you find any mistake or anything missing from the table, please contact .

Note: It is not recommended to modify the value of these variables in the source code editor. You should adjust the corresponding options in the PowerBuilder IDE instead.

Variables in application object

How to set the variable in IDE

Screenshot

appname

This variable/option is read-only.

In the Application painter > General tab, view the value in the AppName field.

displayname

In the Application painter > General tab, input the value in the DisplayName field.

themepath

In the Application properties dialog box (opened from Application painter > General tab > Additional Properties button), select the Themes tab, and then input the value in the Theme Path field.

themename

In the Application properties dialog box, select the Themes tab, and then select a value from the Theme list box.

nativepdfvalid

In the Application properties dialog box, select the PDF Export tab, and then select the check box of Always use NativePDF! method for PDF Export.

nativepdfincludecustomfont

In the Application properties dialog box, select the PDF Export tab, and then select the check box of Packaging custom fonts in the generated PDF files.

nativepdfappname

In the Application properties dialog box, select the PDF Export tab, and then input the value in Specify the Application property of the generated PDF file.

richtextedittype

In the Application properties dialog box, select the RichTextEdit Control tab, and then select a rich text editor from the list box of Select Which Rich Edit Control to Use in the 32-bit Application.

richtexteditx64type

In the Application properties dialog box, select the RichTextEdit Control tab, and then select a rich text editor from the list box of Select Which Rich Edit Control to Use in the 64-bit Application.

richtexteditversion

Obsolete

richtexteditkey

Obsolete

appicon

In the Application properties dialog box, select the Icon tab, and then input the value in the Icon Name field.

appruntimeversion

This variable is read-only.

The value is automatically updated to the version of the runtime currently used in the target upgrade or full build.

N/A

manualsession

In the Application properties dialog box, select the PowerServer tab, and then select the check box of Dynamic session parameters.

unsupportedapierror

In the Application properties dialog box, select the PowerServer tab, and then select the check box of During compilation, report unsupported PowerScript features for PowerServer deployment.

ultrafast

In the Application properties dialog box, select the PowerServer tab, and then select the check box of At every save, create temp files required for cursory (ultra-fast) rebuild.

bignoreservercertificate

In the Application properties dialog box, select the PowerServer tab, and then select the check box of Ignore PowerServer certificate.

ignoreservercertificate

In the Application properties dialog box, select the PowerServer tab, and then select a value from the list box of Ignore PowerServer certificate.

webview2distribution

In the Application properties dialog box, select the WebBrowser tab, and then select a radio button under Which WebView2 Runtime distribution to use for the WebBrowser control.

webview2checkx86

In the Application properties dialog box, select the WebBrowser tab, and then select the check box of 32-bit under WebView2 Runtime Fixed Version.

webview2checkx64

In the Application properties dialog box, select the WebBrowser tab, and then select the check box of 64-bit under WebView2 Runtime Fixed Version.

webview2url

In the Application properties dialog box, select the WebBrowser tab, and then input the value under WebView2 Runtime Download URL.