Results 1 to 2 of 2

Thread: Dynamic function selection

  1. #1

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Dynamic function selection

    I need to dynamicly choose a function to run, I want as much code as possible in the DLL file, so my question is, can you return a variable to a form from a function that would be like MyFunction() in the variable and can you make it execute? Or is there an alternative?

    I'd rather not have a huge amount of if statements or select statements because the DLL I want to be seperate from my program, so I can modify it as much as I want, and the program will work with it still.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Check out delegates, that is pretty much what they are; variables that hold functions instead of data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width