PythonScript Xojo Plugin

PythonFunction.Invoke Method (console safe)

Invokes a Python function.

Invoke(
   parameters as PythonParameters) as PythonResult

Parameters

parameters
Parameter block or nil. If sending nil then the function is called with no parameters.

Returns

PythonResult
The result of the function as instance of PythonResult

Remarks

func = package.GetFunction("TestFunction")

if func <> nil then
    result = func.Invoke(nil)
   
    if result <> nil then
      
    else
       if PythonScript.ErrorOccurred then
          MsgBox PythonScript.GetError()
          PythonScript.ClearError()
       end if
    end if
end if

See Also

PythonFunction Class