Sign in to follow this  
Followers 0
7h331337

function execute

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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()

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0