Question : In VB.Net how does one call a function name retrieved from a table?

In VB.Net how does one call a function name retrieved from a table?  In the below example, the value of drSheets("Function").ToString will be the name of the desired function to run for a particular row of data in drSheets.  If drSheets("Function") = "FormatSummarySheet", how do I get the below Call statment to execute.  Presently, the line does not execute as expected.

If Len(drSheets("Function").ToString) > 0 Then
       Call drSheets("Function").ToString()
End If

private function FormatSummarySheet()
'some code here
end function

Answer : In VB.Net how does one call a function name retrieved from a table?

use:
1:
CallByName(Me, drSheets("Function").ToString(), CallType.Method)
Random Solutions  
 
programming4us programming4us