|
-
Feb 15th, 2010, 07:46 PM
#1
Thread Starter
New Member
Program help!
Hey im writing a small prgam, however im a little stuck. One of the forms im writing displays a kids price and an adults price, as well as this the user can input how many kids or adults item /she needs. The problem is that the cost of the items needs to be carried across to another form where extra items can be added thus adding more to the price. How can i send the total to the next page where it becomes the grand total?
-
Feb 15th, 2010, 07:52 PM
#2
-
Feb 15th, 2010, 08:02 PM
#3
Re: Program help!
Are you talking about VB forms or web forms?
In VB any control can be queried on any form by preceding the control's name with the form name.
Example from Form2: Form1.Text1.Text = "Hello World"
-
Feb 16th, 2010, 08:24 AM
#4
Re: Program help!
Or, you can store the Total using a Global/Public variable. So, that, you will be able to access it from anywhere in the program...
For declaring a Global/Public variable, declare the variable inside a Module, using a Public keyword.
Example(inside Module1):
Code:
Public intTotal as Integer
...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
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
|