Python3Script Xojo Plugin |
|
Python3Module.GetFunction Method
Gets a function by name from to execute from the class module.
Parameters
- name
- Name of the function to get.
Returns
- Python3Function
- Python3Function or nil if function was not found.
Remarks
func = package.GetFunction("TestFunction")
if func <> nil then
result = func.Invoke(nil)
if result <> nil then
else
if Python3Script.ErrorOccurred then
MsgBox Python3Script.GetError()
Python3Script.ClearError()
end if
end if
end if
See Also
Python3Module Class