Jump to content
Sign in to follow this  
_Kurt

Running a function inside a function

Recommended Posts

_Kurt

Ok, guys, I will try to explain this the best I can.

So I have a UDF, and I would like to use one of the parameters so people can use a UDF "inside" the UDF. Here's a little example:

Example("test")

Func Example($func = "")
    $func(); <-- This is obviously incorrect, merely an example.
EndFunc

Func test()
    Msgbox(0,"","Success")
EndFunc

This would simply display a msgbox. How could I do such a thing? Are there different ways to do it? I'm bad with UDF's :P

Thanks,

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites
_Kurt

Thanks alot! Exactly what I needed.


Awaiting Diablo III..

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  

×