devxlogo

Parsing Calculations Automatically

Parsing Calculations Automatically

Question:
A VB form displays select financial numbers from an Access DB. The user can build a calculation. If the arithmetic operation is stored as text in the DB, how can I later have VB invoke this calculation? I’m trying to avoid any stringmanipulation.

Answer:
There really is no way you can get around having to parse (analyze) the calculation the user typed in. Since everyone who does this type of thing does it differently, there really is no way to have the DB do it. The only thing that is close is in Apex’s TrueGrid Pro, where you can set columns up to be calculated, based on data values. Those may be able to set at runtime.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist