User:Andrew Kanode

Hi! I'm Andrew. I heard about Wikipedia for quite a while before I decided to give back all you guys did for me in Collage. I hope to do lots of editing. My main interests are Programming, Chemical Science, and some other Popurii. I'm 23.

VB6 Question
I'm going to feel like a total idiot posting this, but... I've got to learn Visual Basic 6 in one week, and I have to know a couple of things. Could someone tell me how to work out the problem V = A * (1 + R)Y when V is the end value, A is the original amount, R is the annual interest rate, and Y is the number of years of gained interest; and the user inputs A, R, and Y. I have the form written in the editor, but I don't know how to get the values or make it calculate with the click of a button. Thanks A WHOLE LOT!!! Andrew Kanode (talk) —Preceding comment was added at 17:32, 8 March 2008 (UTC)


 * Add a few text controls on your form. Give them names like "txtOriginalAmount" and "txtAnnualInterestRate" and etc. Then add a button. Give it a name like "btnCalculate". Double click on the button and you should enter into the code editor and you want to edit/create the function btnCalculate_Click (there should be a little drop-down menu where you find this). Dimension your variables (Dim A as Single, etc.), then assign them the values from the text controls (A = Val(txtOriginalAmount.Text). Then do your calculaton (V = A * (1 + R)^Y) and then display the final value somehow (e.g. Msgbox V). Does that help? There's more to getting it right (what if they forget to fill in a value? what if they put invalid information in?) but that's the basic process. --98.217.18.109 (talk) 17:54, 8 March 2008 (UTC)
 * THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Andrew Kanode (talk) 18:04, 8 March 2008 (UTC)