Dear all

when programming in FORTRAN I was used to pass the name of a function to another sub or function. With VB.NET I have some problem.

Suppose I have several functions, named F1,F2, F3,.., and that I have to perform some common task on these functions (for instance numerical integration).

Well, I wish to manage things in such a way to have a library function or subroutine (to do integration) and to call it passing various parameters 'and' a function name ( e.g. F3 ) to perform the integration of F3 .

In other words I wish something similar to this fragment of code to work (declarations and initialization omitted):

module main

integ1= integration(a,b,step,F1)

integ2= integration(a,b,step,F2)

end module

module functions

function F1(x)

....

end function

function F2(x)

......

end function

end module

module library

function integration(x1,x2,stepx,F)

......

and function

end module

however I do not succed to accomplish this, so I need help from you.

thank in advance

Federico