I wonder if it is possible to check during runtime, if a function with a given name exists and how to call it then?
Pseudo-Code example where I named a conceived function FindFunctionRuntime() for showing:
Code: Select all
Procedure test1()
MessageRequester("Test 1", "Just a test", #PB_MessageRequester_Ok)
EndProcedure
*pointer = FindFunctionRuntime("test1"); will find something :)
If *pointer <> 0
CallFunctionFast(*pointer)
EndIf
*pointer = FindFunctionRuntime("test2"); will not find something :(
If *pointer <> 0
CallFunctionFast(*pointer)
EndIf