Groups | Blog | Home
all groups > dotnet windows forms > august 2003 >

dotnet windows forms : Evalute String


Derek Hart
8/19/2003 11:17:21 PM
If I have a string such as "1=1" or "True And False And True Or True", for
example, is there a way in VB.Net to evaluate this into a true or false
boolean? I have been using the script COM control with the Eval statement to
do this, but is there a way to do this purely in .Net? Maybe using
reflection or some other technology?

Derek

Wiktor Zychla
8/20/2003 8:24:32 AM

[quoted text, click to view]

try to generate the code in the runtime.

http://www.codeproject.com/csharp/runtime_eval.asp

Derek Hart
8/21/2003 12:48:56 PM
Do you know of a VB.Net version of the code?

Derek

[quoted text, click to view]

AddThis Social Bookmark Button