Call

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Language Keyword

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")

See Also

Function statement.