12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionIsPersBase WareIsPers - Is persistentIsPers is used to test if a data object is a persistent variable or not.ExamplePROC procedure1 (INOUT num parameter1)IF IsVar(parameter1) THEN! For this call <strong>reference</strong> to a variable...ELSEIF IsPers(parameter1) THEN! For this call <strong>reference</strong> to a persistent variable...ELSE! Should not happenEXIT;ENDIFENDPROCThe procedure procedure1 will take different actions depending on whether theactual parameter parameter1 is a variable or a persistent variable.Return value Data type: boolTRUE if the tested actual INOUT parameter is a persistent variable. FALSE if the tested actual INOUT parameter is not a persistent variable.ArgumentsIsPers(DatObj)DatObj (Data Object) Data type: any typeThe name of the formal INOUT parameter.SyntaxIsPers’(’[ DatObj ’:=’ ] < var or pers (INOUT) of any type > ’)’A function with a return value of the data type bool.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1, Instructions A-R 211

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

Saved successfully!

Ooh no, something went wrong!