|
-
Nov 19th, 2009, 03:46 PM
#4
Thread Starter
New Member
Re: Using variables to store equations
none of my past attempts were any good, but to give you a better picture lets say:
I type "x+y^2" (or any other equation) into TextBox1 then when Command1 is pressed it displayed an answer in Label1 if "x" is a value I typed in TextBox2 and "y" was a value in TextBox3. How could I use any formula (with Xs and Ys in) typed in TextBox1 along with the values of x and y to give answer.
ie.
Dim y as Single
Dim x as Single
Dim strEquation as String
strEquation = TextBox1
y = TextBox3
x = TextBox2
Label1 = strEquation 'But this needs to be whatever the equation is...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|