1
QB64 Discussion / Re: Does 4.5 & 64 allow you to call a function from it's address or from a variable?
« on: February 04, 2022, 11:43:10 am »
Hi Steve,
Yes, something like. But it doesn't have room for function names not on the list.
FreeBasic appears to have Procedure Pointers, in both the Dos and Windows and Linux versions. Maybe QB64 can extend to something like this, but we're still stuck with QB 4.5 being what it is.
Thanks everyone for the clarifications, and the C examples.
Yes, something like. But it doesn't have room for function names not on the list.
FreeBasic appears to have Procedure Pointers, in both the Dos and Windows and Linux versions. Maybe QB64 can extend to something like this, but we're still stuck with QB 4.5 being what it is.
Thanks everyone for the clarifications, and the C examples.
Isn't this more or less something like what you're wanting?Code: QB64: [Select]
A variable is storing the name of the function, and then we're calling the proper function when that variable is set. Or am I missing something here and the original poster is asking for more than what I'm interpreting from this question?