Call_IfExists

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Script structure > Functions/Subs >

Call_IfExists

 

Description

 

Executes a function or dynamically execute a function name or a command name if dynamically passed by a string expression.

 

Syntax

 

Call_IfExists FunctionName[(Arguments)] [TO Variable]

 

Returns

 

Parameters

 

Name

Type

Optional

Meaning

Variable


Yes

Any variable to which it is possible to assign a value

 

Remarks

 

CALL_IfExists is identical to CALL statement but will execute only if FunctionName exists. If FunctionName does not exists, no runtime error will be generated but script execution will continue with the next statement.

 

See CALL statement for additional info.

 

Restrictions

 

See also

 

Examples