108Chapter 6 Buffered FormsRepeatThe Repeat command repeats a sequence of Code V commands and data auser-specified number of times. The number of times to repeat a command ordata sequence is specified in the data section of a Buffered Form Executecommand. The manner in which this is done is best understood by referring toExample 1 below.The Repeat command has the following format:Command ^R^^Z^-Arguments^R^ Repeat Command The data to be repeated.^Z^- End of Repeat TerminatorExample 1: The Repeat command always occurs within the Buffered FormCreate command data sequence. The number of times to repeata portion of the data sequence is specified within the bufferedForm Execute command data sequence.NOTE: The Repeat command is used in the following Code V sequence:^IFORM,CEXAMPLE1^G^R^-^M0201000Repeat ^[020^-^*^*^Z^-^]^R^- The beginning of the Buffered Format Repeatcommand. Everything between the ^R^- and the ^Zwill be repeated.^[020 The data field with a maximum size of 20 bytes.^Z^- The end of the commands and data to be repeated.Now we want to execute the Form EXAMPLE1. The first four bytes of theExecute data field must specify the number of times to repeat the datasequence between the ^R and the ^Z. the next 20 bytes will be read from theExecute data sequence, then the following four bytes specify the number oftimes to repeat the data sequence again, and so forth until all the data in theExecute command is used up.NOTE: Each time the Create data sequence is repeated by the Repeatcommand, the same Execute data is used to fill the data field. TheCopy command, however, inserts new Execute data into the datafield each time the data field is repeated.The Execute command sequence for EXAMPLE1 is:^IFORM,EEXAMPLE1^G0003 3 Times^+(Repeats 3 Times, three times.0002 2 Times^+(Repeats 2 Times, twice)^Gprints: