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
Access Import of Excel Customized Date Formats into Text Field
Setting Up SMTP Mail Service on Windows XP
SSRS percentage equation
Access Query Sequential Counter
Real-Time Audio Stream Capture And Manipulation Through Microphone
Can I remove Active Directory from AD Recovery Mode (F8) on W2K Server?
vmm32\bios.vxd
Choose either Office 2003/2007 to open office files
How do I find the logged in Username from a batch file?
Wait Till Queries Have Refreshed