APPLICATION

Concept Link IconSee also Concept Link IconExample

Launch an executable program. If executed in a WebVue session context the application is started on the computer that is running the web back end.

WebVue support - Yes.

Mode Mnemonic Syntax
1 ISLOADED 1
2 ACTIVATE 1
3 LOAD 2
4 UNLOAD 1

Syntax 1

IntVal = APPLICATION(Mode, Command);

Return type: INTEGER.

Argument

Meaning

Command

The command line that is used to launch the program. This would typically include the full path for the executable. Type STR.

Execution

Mode

Mnemonic

Action

1

ISLOADED

Test if a program is already loaded.

 

 

Return: 1 if loaded, else 0.

2

ACTIVATE

Activate a program that is already loaded. The program window is brought to the front and given focus.

 

 

Return: 1 if successful, else 0.

4

UNLOAD

Unload a program.

 

 

Return: 1 if successful, else 0.

Syntax 2

IntVal = APPLICATION(Mode, Command[, Argument[, Start][,Folder]]);

Return type: INTEGER.

Argument

Meaning

Command

The program file name. This would typically include the full path (drive and folder) for the executable. Type STR.

Argument

Options for the command line of the application. Optional. Type STR.

Start

The mode in which the program will start. Type INTEGER. The program will be loaded:

1 Normal, active. This is the default.
2 Normal, minimized.
3 Normal, maximized.
4 Normal, inactive (window in background).
5 Minimized, inactive (window in background).

Folder

The working path of the program. The character string must present a full path including drive and folder. Type STR.

If the path is incorrect, it defaults to the PcVue working directory.

Execution

Mode

Mnemonic

Action

3

LOAD

Load and run a program.

 

 

Return: 1 if successful, else 0.

Example

For an example, select the Example link above.