Click to See Complete Forum and Search --> : how to calculate expression statement in edit control?


d_boy
April 28th, 1999, 07:04 PM
hi.

i input expression statement into edit control, and how can i calculate it. would you like to help me
to find out the most effective method?

thank you so much.

d_boy
1999.04.29

April 29th, 1999, 01:53 AM
Just having edit control does not help . Edit control is just the medium to take in the values .
Now whatever expresion that has been inputed U will have to parse it & after that U can do whatever
calculations u want to do .

Jerry Coffin
April 30th, 1999, 09:43 PM
There's some code for parsing and evaluating an expression here on CodeGuru. IIRC, it's in the miscellaneous (SP?) section, but that could be wrong as it's been a while since I looked.


The universe is a figment of its own imagination.