Jump to content

Vb.net Evaluation


Nim199

Recommended Posts

Hi, for a while now, I have been working on a prgram to execute mathamatics held inside a string, e.g.:"2*(3-8/4)+6"when run returns8I was, however, helping a freind wiht some VBA recently, and it seems that you can use the 'Evaluate' functio to do this. When I tryed this in VB.NET, however, it wasn't recognised as a command.If anyone knows how to utilliase a built in Evaluation function, PLEASE tell me!Thanks!

Link to comment
Share on other sites

There isn't an Eval function in VB.Net. However there is in JScript.Net. You can create a project in JScript that wraps teh eval function then compile it to an assembly and reference it in your VB project.The process is explained here http://bytes.com/groups/net-vb/353876-poss...e-eval-vbscript

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...