Hi,
I was wondering if there is a way to execute code in VB.NET from a string. I'm using VB.NET 2008 Express.
For example, read a file or database and put it in a string then execute the command in runtime.
I'm using an example, the final code will be getting the command from a database, check and split if there is more than one command and then execute all lines one by one.
Thanks in advance.
I was wondering if there is a way to execute code in VB.NET from a string. I'm using VB.NET 2008 Express.
For example, read a file or database and put it in a string then execute the command in runtime.
Code:
Dim StrCommand as String
strCommand = "Msgbox(""Hello World"")"
Execute(strCommand)
Thanks in advance.