Convert a String to a VB statement ?

C

Cerebrus99

Hi all,

Is it possible to convert a user-entered string to a VB.NET statement, that can then be executed ?

I want to build a small utility that will allow me to enter a VB statement in a textbox, and the result can be output in a Msgbox.

For instance, I have a textbox in which I enter this text:
--------------------------------
TestString.IndexOf(","c, 0)
--------------------------------
(TestString has already been set)

I'm searching for a way to execute this statement in my code. Is it at all possible ?

Any help is appreciated.

Regards,

Cerebrus.
 
C

Cerebrus99

Hi,

Woo ! That's mighty complicated stuff, even though I did understand what is
being done here. Guess I won't be building that "small utility" anytime
soon. ;-)

Thanks for responding with those useful links,

Regards,
Cerebrus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top