|
-
February 14th, 2000, 11:49 PM
#1
Math
I am trying to make a program for my math class that msgbox's me the answer. I want text1 for the first number, and i want text2 the variable and text3 the answer. This is a common math problem: 5y = 430
now how do i msgbox me back what "y" means. First I have to divide text3 with text1. Sorry if this is confusing
-
February 15th, 2000, 02:24 AM
#2
Re: Math
>Sorry if this is confusing
well, it is, but I'm going to try to answer anyway :-)
msgbox "y is " & Text3.Text / Text1.Text
-
February 15th, 2000, 10:31 AM
#3
Re: Math
this is the code to calculate the y value (what grade are you in? by the way)
y = Text2 / Text1
MsgBox y
Don't forget to trap error (if not a number)
you can use something like If Not IsNumeric(Text1) then msgbox "not a number"
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
|