Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Basic VB help

DirtyDane
 Share

So its pretty straight forward. Im learning VB and am having trouble wrapping my head around how to use a variable to store a value. as in. I have a button that performs a calculate operation, and i need to store the quantity, cost, and number of transactions somehow so that I can use another button to create an average. 

 

.. This is probably really simple, but I am just stumped. Any help is appreciated.

“I am Holo the Wise Wolf. I know that there are things in this world that I do not know and that makes me wise!”

Spoiler

Use the following style specs for your profile!
Screeninator:  Asus GeForce GTX 750Ti 2GB
Powermathingy: EVGA 500W
Stickaminator: Crucial 16GB 「4x4GB」DDR3-1600
Procrastinator: Intel i5-4460 3.2ghz
Holdametalicizor:  Corsair 200R 
Noisoundacreator:  Razer kracken pro
Attatchamajiggy :  Asrock H97 Anniversairy ATX LGA1150
Remembrerthing:  i've got a-lot of drives
Flat-Colorful-Thing:  LG not actually sure the model of it
See-A-Move-O: Razer Mamba 2012
ButtonBoard:  Razer Deathstalker 

 

Link to comment
Share on other sites

Link to post
Share on other sites

If you need to have that value only stored for 1 session, im preety sure that you can declare (dim) some temp variables in the main form (if you are using Forms) script, or when you hit calculate you could display the value, and when you want to calculate the average , just take the value from the UI.

 

You should tell us a bit more about your current setup and what are you working with.

 

I dont know how to explain this well , its been years since i used VB, but i hope i helped at least a little ....

Link to comment
Share on other sites

Link to post
Share on other sites

On 10/26/2018 at 11:36 PM, mariushm said:

Are you talking about Visual Basic 6, or VBScript , or do you mean VB .Net ?  They're kinda two different things.

someone pass his math classes ?

 

But seriously i know what you meant.

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
 Share


×