[futurebasic] Re: maths function

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1998 : Group Archive : Group : All Groups

From: <Lucy24@...>
Date: Sun, 28 Jun 1998 11:31:50 EDT
<<I have a text field where a math statement like "2*x+3" or "2*(x) + 3" is
I then want to evaluate this statement for certain values of x.
Is there a simple way of doing this?>>

Can you go into a little more detail about what's getting entered? If the user
is just entering the x, all you have to do is take VAL(editText$)--paying
close attention to all possible number formats, decimal points & so on--and
then plug it into your function, but if they're entering the whole string,
operators and all, it gets stickier...