7h331337 Posted December 7, 2009 Posted December 7, 2009 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
skyboy Posted December 7, 2009 Posted December 7, 2009 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)
Richard Robertson Posted December 8, 2009 Posted December 8, 2009 There are many examples of this on the forum. Just look in the example scripts.
7h331337 Posted December 8, 2009 Author Posted December 8, 2009 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()
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now