|

Script


(string) The script to assign to the specified dialog's event.


image

Note: The script specified in this argument will replace any script existing in the event. If you want to append to the event (instead of replacing the script), you must first perform an Application.GetDialogScript action.


Re t u r n s


Nothing. You can use Application.GetLastError to determine whether this action failed, and why.


See also: Related Actions


image

image

Application.SetLastError

OverviewExamples

Application.SetLastError ( number ErrorCode )


De s cr ip t ion


Changes the last error code.


P arame t er s


ErrorCode


(number) A numeric code indicating the error code you wish to set. See Error Codes for the complete list of error codes.

Re t u r n s


Nothing. You can use Application.GetLastError to determine whether this action failed, and why.


See also: Related Actions


image

image

Application.SetMenu

OverviewExamples

Application.SetMenu ( table Menu )


De s cr ip t ion


Sets the application's menu contents.


image

Note: "Show menu bar" setting must be checked on the Menu Bar dialog in order for this action to work.


P arame t er s


Menu


(table) A table of menu information, indexed by the following keys:



KEY


TYPE DESCRIPTION


ID


number


The numeric ID of the menu item.


Text


string


The text of the menu item. Use & before a letter to specify a mnemonic. Note that to create a separator item, set the item's Text to "---". In this case the ID, Checked, Enabled and SubTable items are ignored. Separator items will never fire an On Menu event.


IconID


number


The 0-based icon index from the Image List specified on the Menu Bar to use for the menu item.


Enabled


boolean


Whether the menu item is enabled.


Checked


boolean


Whether the menu item is checked.


SubMenu


table


A numerically indexed table of menu item tables. This creates a pop-up menu for this item. Note that if a SubTable is specified this menu item will never fire the On Menu event. Instead it's sub-items will fire the event.


Re t u r n s


Nothing. You can use Application.GetLastError to determine whether this action failed, and why.


See also: Related Actions


image

image

Application.SetMenuBarActive

OverviewExamples

Application.SetMenuBarActive ( boolean Activate = true )


De s cr ip t ion


Controls whether or not the application menu bar is active. This action is useful if you would like to prevent the user from accessing the menu while performing actions.


P arame t er s


Activate


(boolean) Whether to make the application menu bar active:



VALUE DESCRIPTION


true


Allow the user to access the application menu bar. (Default)


false Don't allow the user to access the application menu bar.


image

Re t u r n s


Nothing. You can use Application.GetLastError to determine whether this action failed, and why.


See also: Related Actions


image

image

Application.SetPageProperties

OverviewExamples

Application.SetPageProperties ( string PageName,


table Properties )


De s cr ip t ion


Sets the properties of a page.


P arame t er s


PageName


(string) The name of the page whose properties you want to modify.


|