05-12-2008, 08:22 AM
By the way, I would have coded your program using arrays, such as:
U1$(4), H1(4), P1(4)
Then, to read, you could use:
FOR i = 1 to 4
 READ U1$(i), H1(i),P1(i)
NEXT i
That would read all the values into the variables.
I would code the following parts in a similar manner.
U1$(4), H1(4), P1(4)
Then, to read, you could use:
FOR i = 1 to 4
 READ U1$(i), H1(i),P1(i)
NEXT i
That would read all the values into the variables.
I would code the following parts in a similar manner.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.