Jump to content

Running a function inside a function


_Kurt
 Share

Recommended Posts

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..

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...