


Using a field in ACUCOBOL.DEF, your COBOL program can determine whether or not it is running in a Web Browser via the ACUCOBOL-GT Web Plug-in. The new field, known as IS-PLUGIN, is defined in the SYSTEM-INFORMATION group of ACUCOBOL.DEF.
For example, you can include the following code:
ACCEPT SYSTEM-INFORMATION FROM SYSTEM-INFO.
if IS-PLUGIN then
display message box "Running via the Web Plug-in"
else
display message box "Running via stand-alone runtime"
end-if.
W$GETURL library routine