You cane use the COM script control which comes with VB6 to evaluate a math expression. It can be used from a .NET application by adding a reference to the component.
Lidor -----Original Message----- From: Stephens [mailto:[EMAIL PROTECTED]] Sent: Mon, April 15, 2002 15:36 To: [EMAIL PROTECTED] Subject: [DOTNET] Evaluate math expression strings? > Does the framework have (or is someone willing to share :) ) a utility > class to do this? Or will I need to build my own interpreter? Something > like... > > int result = MyMath.Evaluate( "(10 / 2) * 3" ); There's some VB 6 code that evaluates simple expressions at: http://www.vb-helper.com/HowTo/expr.zip You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.