G
Guest
Hi,
I've a question. I'm developing a windows application and for the
application i need to run functions and procedures that are stored in a
database.
Here is an example that i tried to get working.
How can i execute the function that is stored in the string expr ?
I've a question. I'm developing a windows application and for the
application i need to run functions and procedures that are stored in a
database.
Here is an example that i tried to get working.
How can i execute the function that is stored in the string expr ?
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim expr As String = "test2(10,25)"
MessageBox.Show(expr)
expr.run()
End Sub
Function test2(ByVal i As Integer, ByVal x As Integer) As Boolean
Dim y As Integer
y = i + x
Return y
End Function