since you can type any expression in the immediate window it seems like there should be an API to evaluate some valid math expression that you have in a string. Does anyone know it?
Printable View
since you can type any expression in the immediate window it seems like there should be an API to evaluate some valid math expression that you have in a string. Does anyone know it?
To do this in VB, you need to add the Windows Script Control OCX to your project and use its 'Eval()' Function.
You can download it here
Click on the 'Script Control' Option on the left sidebar and then just use your common sense to download it. (Microsoft requires yo to register before you can download it :rolleyes: )