TomToad graciously corrected my code, this is what the corrected code looks like:
Basically it allows me to set a function pointer, which in turn gets called at the completion of a function. In a sense creating a dynamic call back ability. Is this THE way to do it or is there another way? This is working beautifully, but it's such an elegant and easy solution, it always makes me think ha..too easy, must be a hitch somewhere! :) lol...
Global FuncPointer() ' SetFunctionPointer(Test) FuncPointer() ' Function SetFunctionPointer(Func()) FuncPointer = Func End Function ' Function Test() Print "It worked!" End Function
Basically it allows me to set a function pointer, which in turn gets called at the completion of a function. In a sense creating a dynamic call back ability. Is this THE way to do it or is there another way? This is working beautifully, but it's such an elegant and easy solution, it always makes me think ha..too easy, must be a hitch somewhere! :) lol...