Jump to content

Recommended Posts

Posted

is it possible to use the execute function to create and call the function like so.

page()
func _page()
msgbox(0,0,0)
endfunc

i have tryed to do this in so many different ways but non of them work

$p = "func _page() & msgbox(0,0,0)& endfunc & _page()"
Execute($p)

thanks

Posted

no, it is not possible to do that, i checked with Eval as well; though this would be a nice feature, create JIT functions instead of having them all premade (though the usefulness is questionable without having a user put in what a function is to do)

Posted

There are many examples of this on the forum. Just look in the example scripts.

i have searched and there is no example of how to create and execute a function useing execute()

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...