VBScript functions

Soldato
Joined
8 Nov 2006
Posts
9,237
In VB script, is it possible to pass a function name as an argument which I can then call?

Example:

Function FunctionWhichExecutesFunction (functionToCall)
Execute functionToCall in this case HelloFunction passed form Function1
End Function

Function Function1
FunctionWhichExecutesFunction (HelloFunction)
End Function

Function HelloFunction
'Do something here
End Function

Hope that's clear...
 
Thanks for the input.

Was hoping it was possible, but am going to have to find some other means of doing what I want.

And can't use another language due to working on a site (a large one) that is all classic ASP.
 
Back
Top Bottom