Jump to content

Looking for some VB Help

Bill Cosby

On my form i have a combobox a text box and a button. 

 

When i click that button, i am taking the choice from the combo box and multiplying the price of that product by the inputed number in the text box. That part i am fine with, thats simple. What i need help with is this: That final value from multiplying the product price by the inputed number needs to be saved, and then i need the whole form cleared. and then be able to repeat the process while saving each number as i go along. 

 

If anyone can help that would be great thank you. 

Link to comment
Share on other sites

Link to post
Share on other sites

I don't remember any VB syntax, but I will explain in general programming terms.

 

Use a hashmap (or VB equivalent) and add each value to it.

Link to comment
Share on other sites

Link to post
Share on other sites

it is limited but set up some settings for the program, declare integers and the program will save it.

use each saved value in as a new integer and then repeat the process, you can also add settings during

debug as integers too. to clear just simple set all integer boxes back to nil.

Link to comment
Share on other sites

Link to post
Share on other sites

Code? I'd like to see where you are.

Do you want to know what grinds my gears?
The old forum.

Link to comment
Share on other sites

Link to post
Share on other sites

You could save it to an array. Then to call it up just use the array index. "Redim preserve" your array when you add more indexes so you don't lose the data stored in it.

“The value of a college education is not the learning of many facts but the training of the mind to think”

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×