09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

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.

IsVar Is Variable<br />

Example<br />

IsVar is used to test whether a data object is a variable or not.<br />

PROC procedure1 (INOUT num parameter1)<br />

IF IsVAR(parameter1) THEN<br />

! For this call reference to a variable<br />

...<br />

ELSEIF IsPers(parameter1) THEN<br />

! For this call reference to a persistent variable<br />

...<br />

ELSE<br />

! Should not happen<br />

EXIT;<br />

ENDIF<br />

ENDPROC<br />

The procedure procedure1 will take different actions, depending on whether the<br />

actual parameter parameter1 is a variable or a persistent variable.<br />

Return value Data type: bool<br />

Arguments<br />

Syntax<br />

TRUE if the tested actual INOUT parameter is a variable.<br />

FALSE if the tested actual INOUT parameter is not a variable.<br />

IsVar (DatObj)<br />

DatObj (Data Object) Data type: any type<br />

The name of the formal INOUT parameter.<br />

IsVar’(’<br />

[ DatObj ’:=’ ] < var or pers (INOUT) of any type > ’)’<br />

A function with a return value of the data type bool.<br />

<strong>RAPID</strong> Reference Manual 9-IsVar-1

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

Saved successfully!

Ooh no, something went wrong!