Loops
hi. I need help with a counter loop.
I need this program that I am working on to loop until the number of times and write a record of it ..
example..
pallet= any number user enters greater than 1
the loop is suppose to write the record to the file "pallet times"..(if pallet was 4, it should loop 4 times but the below loop is only looping once, what am I doing wrong here???) also. the loop is suppose to increase the ticket number .. which works ok.. any suggestions????
For(counter=1, counter<pallet, counter=counter+1)
ticket=ticket+1
next
....
I need this program that I am working on to loop until the number of times and write a record of it ..
example..
pallet= any number user enters greater than 1
the loop is suppose to write the record to the file "pallet times"..(if pallet was 4, it should loop 4 times but the below loop is only looping once, what am I doing wrong here???) also. the loop is suppose to increase the ticket number .. which works ok.. any suggestions????
For(counter=1, counter<pallet, counter=counter+1)
ticket=ticket+1
next
....