LOTUSSCRIPT LANGUAGE

Shellid function
Example

Starts another program and returns its task ID.

Syntax

Shellid ( program [ , windowStyle ] )

Elements

program


windowStyle The constants are defined in the file lsconst.lss. Including this file in your script allows you to use constant names instead of the numeric values assigned to them.

Return value

If the operating system is Windows or Macintosh, and LotusScript successfully starts program, Shellid returns the program’s task ID, a number that uniquely identifies the program. With other operating systems, if LotusScript successfully starts program, Shellid returns the number 33.

If LotusScript cannot start program, Shellid returns an error.

Usage

Shellid must be called from within an expression or an assignment statement, so that its return value is used.

After Shellid starts a program, LotusScript continues to execute the script without waiting to make sure the program has completed. You cannot be sure that a program started by Shellid has finished running before the rest of your script is executed.

Example
See Also