|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Run Dynamic CodeI'm using Visual Basic 2005, is there a way to run dynamic code?
Ex: Dim strToRun as String ="" strToRun &= "dim s as string = ""Hello World!""" & vbcrlf strToRun &= "Messagebox.Show(s)" [SomeClass].Execute(strToRun) "Manuel" <NoM***@NoMailLand.com> schrieb: If you are asking for an 'Eval' method, no, there is no such method.> I'm using Visual Basic 2005, is there a way to run dynamic code? > Ex: Runtime Compilation (A .NET eval statement)> Dim strToRun as String ="" > strToRun &= "dim s as string = ""Hello World!""" & vbcrlf > strToRun &= "Messagebox.Show(s)" > [SomeClass].Execute(strToRun) <URL:http://www.codeproject.com/dotnet/evaluator.asp> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> "Manuel" <NoM***@NoMailLand.com> schrieb This code is part of which procedure of which class of which assembly?> I'm using Visual Basic 2005, is there a way to run dynamic code? > > Ex: > Dim strToRun as String ="" > strToRun &= "dim s as string = ""Hello World!""" & vbcrlf strToRun > &= "Messagebox.Show(s)" > [SomeClass].Execute(strToRun) > > Armin |
|||||||||||||||||||||||