Keyword

Call


Description

Enables you to Call a function without handling the value returned by the function.

Usage

Call functionName

Part

Description

functionName

Any function.

Notes

Use the Call statement only when you want to Call a function without using the value that it returns. This enables you to have the function perform its job without declaring an extra local variable to store the function's result.

Sample code

The following calls the Color.SelectedFromDialog function without using its (Boolean) result.

Var c As Color = &cff0000 ' choose the default color shown in color picker
Call Color.SelectedFromDialog(c, "Select a Color")

Compatibility

All project types on all supported operating systems.

See also

Function statement.