Can I return a value from the calculator

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

In part of my application the user may need to do a simple arithmetic
calculation in order to get the value to put in a text box. I was thinking
that it would be good if I could display the Windows calculator and then put
the result in the textbox for the user. Additionally, I'd like to keep the
text of the calculation - if possible.

Is any of this possible? How would I go about it?

I tried the Shell function but couldn't get a return value.

Art
 
Art said:
Hi,

In part of my application the user may need to do a simple arithmetic
calculation in order to get the value to put in a text box. I was
thinking
that it would be good if I could display the Windows calculator and then
put
the result in the textbox for the user. Additionally, I'd like to keep
the
text of the calculation - if possible.

Is any of this possible? How would I go about it?

I tried the Shell function but couldn't get a return value.

Art


It would probably take less time to knock up a simple calculator form and
use that.

There is probably some way to go about it with APIs and trying to grab the
text of the calculator, but it certainly wont be too awful easy.
 
Rick,

Thanks for the suggestion. I actually don't need anything that looks like a
calculator, a text area would work fine. In any case I was trying to avoid
coding something to parse simple equations and thought if I could grab the
calculator it might be easier.

Thanks again,

Art
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top