Originally posted by phinds
Add 'Microsoft Access 8.0 Object Library' to your project's reference and use code like this

myString = "((3+5)*4)-(40/2)-10)"
MsgBox Eval(myString)
thanks guys. u really helped a lot. I added Ms Script contorl and it worked perfect. i tried 'Microsoft Access 8.0 Object Library' too but i recived 'error in loading DLL' error at run time. i don't know why
anyway thanks alot