What are my Options? (Design)

  • Thread starter Thread starter bole2cant
  • Start date Start date
B

bole2cant

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top