By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

What are my Options? (Design)

P: n/a
I am working on just my second (simple) program. (VB2003 Standard Edition)

I have everything working except the print button.

Basically, I have three textboxes where the user inputs numbers and a fourth
which is a calculation result.

The user will change the input numbers and press the calculate button for each
set of numbers. When he is finished I want him to be able to print out all the
lines (rows) of numbers used, i.e., four columns. There may be 60 or more
lines.

How do I save these sets so that they can be printed? They don't need to be
saved to a file for later use, just printed as a final step in the program.
Now each set is just identified as TextBox1.Text, ... TextBox4.Text, then
overwritten by the next set.

I only have three reference books and none has a sample of code on how to do
this.

What are my options for doing this? Thanks for any help.

--
-Doug

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can have a bidimensional array of 4 by X where "X" is the number of sets
you want to keep.
I'm in a hurry right now so I can't give you any code, but look in your
reference books or Google for arrays.
Just remember to create the array as a global variable so it does keep all
your values.
Hope it helps

Andre Nogueira

"bole2cant" <sh*****@xxxmission.com> wrote in message
news:ce**********@news.xmission.com...
I am working on just my second (simple) program. (VB2003 Standard Edition)

I have everything working except the print button.

Basically, I have three textboxes where the user inputs numbers and a fourth which is a calculation result.

The user will change the input numbers and press the calculate button for each set of numbers. When he is finished I want him to be able to print out all the lines (rows) of numbers used, i.e., four columns. There may be 60 or more
lines.

How do I save these sets so that they can be printed? They don't need to be saved to a file for later use, just printed as a final step in the program. Now each set is just identified as TextBox1.Text, ... TextBox4.Text, then
overwritten by the next set.

I only have three reference books and none has a sample of code on how to do this.

What are my options for doing this? Thanks for any help.

--
-Doug

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.