SimonSellick
Programmer
Hi,
I need to add functionality to a VB6 console application to evaluate a string containing a numeric expression, using BIDMAS. For example, it should evaluate
"(3 + 1) * (2 + 4)" as 32.
Access VBA has an eval() function that does this. Does anyone know how to get at with VB6? I can assume that Access will be present on the target machine, so I'm hoping that there might be a DLL API that I can call. I would like to avoid shelling out to a Windows Script or similar because this is likely to be called a few hundred times per run.
Any assistance gratefully received.
Simon.
I need to add functionality to a VB6 console application to evaluate a string containing a numeric expression, using BIDMAS. For example, it should evaluate
"(3 + 1) * (2 + 4)" as 32.
Access VBA has an eval() function that does this. Does anyone know how to get at with VB6? I can assume that Access will be present on the target machine, so I'm hoping that there might be a DLL API that I can call. I would like to avoid shelling out to a Windows Script or similar because this is likely to be called a few hundred times per run.
Any assistance gratefully received.
Simon.