| || |
Calling function arguments from datatable
Can anyone help on the below.
In datatable column1 tells us the function name we are going to use and column2 tells us the arguments we are going to pass to particular function. While getting the arguments from column2, the whole value is stored in variable as string and hence we are not able to pass it.
Re: Calling function arguments from datatable
<font class="small">Code:</font><hr /><pre>Public Function MyFunc(a,b)
var1 = 2 'Get the vales from datatable in your case
var2 = 3 'Get the vales from datatable in your case
Funcname = "MyFunc"
Execute Funcname&" " &Chr(34)&var1&Chr(34)&","&Chr( 34)&var2&Chr(34)