System.IsFunctionAvailable

From Xojo Documentation

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

System.IsFunctionAvailable(FunctionName as String,LibraryName as String) As Boolean

Supported on Desktop, Web, Console.

IsFunctionAvailable will attempt to load the passed function from the specified library.

Notes

If the function can be loaded, IsFunctionAvailable returns True. If the operation fails, it returns False. Calling IsFunctionAvailable or using the Soft keyword in a Declare statement will cache both the library loading code as well as the function itself. Multiple calls to the same function will suffer almost no overhead costs in comparison to regular ("hard") Declares. See the description of Soft Declares in the notes for the Declare statement.

fa-info-circle-32.png
IsFunctionAvailable is not supported for mobile projects.