Name
GetProgramInfo -- get information about the current program (V3.0)
Synopsis
type, name$[, hw$] = GetProgramInfo()
Function
This function can be used to obtain some information about the currently running Hollywood program. GetProgramInfo() will return two values: The first return value specifies the program type currently running inside Hollywood. This variable can be #PRGTYPE_SCRIPT for Hollywood scripts, #PRGTYPE_APPLET for Hollywood applets, or #PRGTYPE_PROGRAM for compiled executables. The second return value is a string which contains the file name of the currently running program. If the currently running program is an applet or a script, its name will be returned in name$. If the currently running program is a compiled executable, name$ will receive the file name of this executable.

If the currently running program is an applet or a script, there will be a third return value hw$. This return value will contain the file name of the Hollywood interpreter used to run this applet or script.

Inputs
none

Results
type
type of the currently running program (#PRGTYPE_SCRIPT, #PRGTYPE_APPLET or #PRGTYPE_PROGRAM)
name$
file name of the currently running program
hw$
optional: this value is only returned if the currently running program is a script or an applet; it specifies the path to the Hollywood interpreter used to run this script or applet

Show TOC