Microsoft
Software
Hardware
Network
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").ToStr
ing 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").T
oString) > 0 Then
Call drSheets("Function").ToStr
ing()
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)
Open in New Window
Select All
Random Solutions
OpenRecordSet querydef with parameter problem Access 97
Java Script - Toggle a checkbox by clicking on an image
how to implement insert,delete,update and selete operations using MVVM design pattern in WPF application
Form_Delete called 2 times when using DEL key on subform
error with web site when it was moved from server 2003 to 2008
Update from SQL Query
C#.NET Blowfish Encryption Implementation
SharePoint Project Server 2007
WSUS 3.0 SP2 - Specify intranet Microsoft update service location
Only one parameter passed to function but For Each...Next keeps going after first pass. Can't understand why.