You could send an event and put the (string-)name of that function in the .extra field. Then you should have the function listen to events (eventhooked), if the function spots 'the name of the function' then you execute it.
This is a way where you never have to do large select-case constructions.
The select-case option is ofcourse also valid but you'll keep updating that code if your function count grows.
Select s$
Case "DoThis"
DoThis ' <- function call
Case "DoThat"
DoThat ' <- function call
EndSelect
This is a way where you never have to do large select-case constructions.
The select-case option is ofcourse also valid but you'll keep updating that code if your function count grows.
Select s$
Case "DoThis"
DoThis ' <- function call
Case "DoThat"
DoThat ' <- function call
EndSelect