{"id":201,"date":"2007-09-14T14:45:51","date_gmt":"2007-09-14T19:45:51","guid":{"rendered":"\/cgi\/wp\/?p=201"},"modified":"2007-09-14T14:45:51","modified_gmt":"2007-09-14T19:45:51","slug":"eval-for-vbnet","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=201","title":{"rendered":"Eval For VB.NET"},"content":{"rendered":"<p>Today I was converting some <strong>ASP<\/strong> code to  <strong>ASP.NET<\/strong> when I ran into a problem with the  <strong>eval<\/strong> statement which is not supported in the NET Framework.  Fortunately, I found a clever solution on the Internet at <a href=\"http:\/\/odetocode.com\/Articles\/80.aspx\">http:\/\/odetocode.com\/Articles\/80.aspx<\/a>.  You can compile that <strong>C#<\/strong> code into a DLL and put it into the bin  directory of your ASP.NET web site. Then your <strong>VB.NET<\/strong> code will  have access to functions that perform the same purpose as eval:<\/p>\n<p><code>OdeToCode.Utility.Evaluator.EvalToDouble(variable)<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I was converting some ASP code to ASP.NET when I ran into a problem with the eval statement which is not supported in the NET Framework. Fortunately, I found a clever solution on the Internet at http:\/\/odetocode.com\/Articles\/80.aspx. You can &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=201\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/201"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=201"}],"version-history":[{"count":0,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/201\/revisions"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}