Is there always a fixed number of operands and operations? i.e. in your example there were 3 operands (2,2,6) and 3 operations (^,/,+)
You could perhaps drop a combo box (or one for each operation) on the form and populate so that it contains a drop-down list of all the available operations. Then you could drop several edit boxes (one for each operand) on the form. For example, the order of components which would allow you to enter the above formula would be: editbox - combobox - editbox - combobox - editbox - combobox - editbox. This way you can read each operand/operation individually. Clive
With respect to Stretchwicksters idea, why dont you make a small keypad type display, like a calculator, that contains all of the keys and the operations that may be needed. Then as the user presses the keys / operation buttons, fill a label with the formula that is being created by the user.
Then you will have a formula at least in the form of a string value (label.caption), which you could parse through to get the individual operands and operations to use in your formula.
Hope this helps!
Andrew
"If it is stupid but it works then it isn't stupid"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.