Previous Topic

Next Topic

Book Contents

Book Index

Call statement

Transfers control to a Sub procedure or Function procedure.

Syntax

CALL procedurename[(argumentlist)]

This calls a Sub procedure or Function and discards the return value. The purpose of this is to call functions that produce desirable side-effects. In automation and scripting it is commonly used to start another script - e.g.

CALL PlayScript("Script2.pfs")

will play the automation script "Script2.pfs".