...

View Full Version : calling a user defined function dynamically with VB



glz
09-14-2007, 07:49 PM
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

glz
09-14-2007, 11:04 PM
Does anyone know what i'm talking about?

Fatmumuhomer
09-18-2007, 04:19 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum