Hi
I am an absolute beginner, except that I have worked the tutorial and
attempted to read various books.
I am trying to design a program part of which will evaluate a function
supplied by the user.
I have declared the variable x as double. The user will now supply the value
of x in one editfield called Xmin and the function equation in the form
something like x^2 in the next editfield called Relation and declared as
double.
Pushing a button, PushButton1, then should(!) give the value of the
function.
My problem is code for supplying the equation: is it a string or a number?
This is what I have tried.
dim x as double
dim relation as double
dim y as double
x=Val(xMin.text)
equation=Val(relation.text)
y=equation
MsgBox str(y)
I get two error messages.
* This method or property does not exist in relation.PushButton1.Action,
line 17:
equation=Val(relation.text)
* This method or property does not exist in relation.PushButton1.Action,
line 18:
y=equation
What is going wrong?
By the way I'm from London and it's not raining!
Best wishes
Hugh Neill
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|