I am trying to call a procedure from within a procedure but the one I'm trying to call is not known (a variable procedure call?). Any ideas? Maybe there's something I'm missing...
Proc1("Proc2")
Procedure Proc1(WhatToCall$)
WhatToCall$() ; I know this won't work but it shows what I'm trying to do :-)
EndProcedure
Procedure Proc2()
; code....
EndProcedure
I did look through the manual but I don't know what this would be called. Thanks in advance!
Probably CallFunctionFast, based on what you've said so far. Pass the pointer to the proc using @Proc() and the receiver does a CallFunctionFast with that as parameter.
[Edit] Hey! You.. You.. Usurper!!
Last edited by netmaestro on Tue Dec 04, 2007 2:17 am, edited 1 time in total.
mrjiles wrote:I am trying to call a procedure from within a procedure but the one I'm trying to call is not known (a variable procedure call?). Any ideas? Maybe there's something I'm missing...
Proc1("Proc2")
Procedure Proc1(WhatToCall$)
WhatToCall$() ; I know this won't work but it shows what I'm trying to do :-)
EndProcedure
Procedure Proc2()
; code....
EndProcedure
I did look through the manual but I don't know what this would be called. Thanks in advance!
First, open your window and throw blitzbasic to the street.
Secondly,