Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    glz
    glz is offline
    New Coder
    Join Date
    Apr 2007
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question calling a user defined function dynamically with VB

    in php there is a function called call_user_func which you can use to dynamically execute a user create function along with any arguments you wish to pass to it

    I am looking for a similar function in VB, I've google, msdn'd...etc.. with no luck
    Is there such a function in VB and if so, what is it?


    call_user_func
    (PHP 4, PHP 5)

    call_user_func — Call a user function given by the first parameter

    Description
    mixed call_user_func ( callback $function [, mixed $parameter [, mixed $...]] )

    -thank u

  • #2
    glz
    glz is offline
    New Coder
    Join Date
    Apr 2007
    Posts
    57
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Does anyone know what i'm talking about?

  • #3
    New Coder
    Join Date
    Jun 2006
    Posts
    30
    Thanks
    2
    Thanked 1 Time in 1 Post
    Now, I'm not saying this is will definitely work, but try looking up function pointers in VB.

    There's a way that you can use "addressof" to dynamically pass in the name of a function. And you can pass parameters as well if needed.


  •  

    Posting Permissions

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