30.04.2013 Views

wIntegrate 6.2.0: Host Subroutines Reference - Rocket Software

wIntegrate 6.2.0: Host Subroutines Reference - Rocket Software

wIntegrate 6.2.0: Host Subroutines Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WIN.CHECK<br />

Syntax<br />

WIN.CHECK ( RUNNING )<br />

Description<br />

This subroutine checks if <strong>wIntegrate</strong> is running.<br />

WIN.CHECK<br />

WIN.CHECK itself is aimed at the GENERIC machine type while there is a<br />

WIN.CHECK.UD for UniData hosts and WIN.CHECK.UV for UniVerse hosts.<br />

This subroutine has a side effect of moving the cursor to the beginning of the current<br />

line and eraseing the first 10 characters (needed to erase the check sequence on<br />

non-<strong>wIntegrate</strong> terminals).<br />

Parameters<br />

The following table describes the parameters of the WIN.CHECK command:<br />

Parameter Description<br />

RUNNING This value is set to 1 if <strong>wIntegrate</strong> is running and 0<br />

if <strong>wIntegrate</strong> is not running.<br />

Example<br />

Check if <strong>wIntegrate</strong> is running on UniVerse<br />

RUNNING = 0<br />

CALL WIN.CHECK.UV(RUNNING)<br />

IF RUNNING THEN<br />

GOSUB 100;* Show GUI menu<br />

END ELSE<br />

GOSUN 200;* Show character menu<br />

END<br />

30 <strong>Host</strong> <strong>Subroutines</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!