Question String Evalutator

PwUP

Member
Joined
Sep 21, 2009
Messages
23
Programming Experience
1-3
Hi!
I've been searching so far for a way to read a string and execute it as vb code.
eg.
VB.NET:
string_evalutate("dim a as integer = 23")
should make a new variable a with 23. Or
VB.NET:
 string_evalutate("MsgBox(a.tostring)")
should show a message with input "23".
I've already searched on the internet :(
I also need it to be able to work with other classes/modules. I've a module with some functions like
VB.NET:
Public Sub Show_Message(byval input as string)
MsgBox(input)
End Sub
so i need
VB.NET:
string_evalutate("Show_Message(a)")
also work showing the message "32".
Is there a solution? I'd be grateful to whoever has an answer :D

:eek: Huh i should have posted this in VB.Net General discussions and not in VS.Net General discossion...forgive me, how can i move this thread?
 
Last edited:
Back
Top