[Gambas-user] Run a function from a string?
bsteers4 at gmail.com
Sat Aug 28 13:20:13 CEST 2021
Is it ,, could it possibly be possible to run a function from a String?
It would open up all sorts of possibilities.
What i mean is for example maybe i want to make a timer to trigger a
function so i want to supply the function name but not run the function at
Public Sub DeferCommand_Click()
Public Sub FunctionTimer_Timer()
'' This bit is where we hit a wall because i don't think anything like it
is possible, but would be sooo useful if it was.
Public Sub RunNow(sMessage As String)
Print "Running Now\n" & sMessage
I should imaging the 3 dots ... could be utilized to transmit any number of
I of course have no real clue where to even begin to implement anything
That would be our Benoits bag of amazing insights :)
(<-- stands back and waits for the "nope, not ever!" :'( ;) )
Any kind of way to implement something like that would be incredibly useful.
I hope I have been clear in my wish here.
kinda like bash 'eval' can turn a string into a function and run it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User