
-----------------------------------
scorpia95
Sun Feb 01, 2015 11:00 pm

Factorial Calculator, formula help :?
-----------------------------------
There is no textbox to input a number, its supposed to start from 1 when you click "Next"

When I click "Next" on my calculator, it's supposed to say 1, and the factorial of 1. Then if I click the button again, it's supposed to say 2 and the factorial of 2. If I click next again its supposed to say 3 and the factorial of 3 and so on...

I don't understand how Its supposed to switch over to the next number when I click the button "Next".

-----------------------------------
Insectoid
Mon Feb 02, 2015 12:13 am

RE:Factorial Calculator, formula help :?
-----------------------------------
You can use a textbox that is does not accept input and is not editable by the user. The 'next' button should edit the text in that box, using the built-in textbox properties.

-----------------------------------
scorpia95
Mon Feb 02, 2015 12:32 am

Re: RE:Factorial Calculator, formula help :?
-----------------------------------
You can use a textbox that is does not accept input and is not editable by the user. The 'next' button should edit the text in that box, using the built-in textbox properties.

Cant, we were told that both the number and the factorial box are labels

Im supposed to be making something like this

http://oi58.tinypic.com/2dpggj.jpg

-----------------------------------
Nathan4102
Mon Feb 02, 2015 7:55 am

RE:Factorial Calculator, formula help :?
-----------------------------------
In the buttonPressed event of your "Next" button, you could increment a variable by 1, set the number label to your variable, and set the factorial box to the factorial of your variable.

-----------------------------------
scorpia95
Mon Feb 02, 2015 12:12 pm

Re: Factorial Calculator, formula help :?
-----------------------------------
ty, i figured it out. Now Im stuck at my formula :?

Formula:
N! = (1^2)*(2^2)*(3^2)...*(N^2)

Im doing this

x = x + 1
        N.Text = x
        For i = 1 To x
            y = i^2    