COPY - TO statement copies all the elements of a LIST with their respective indices to another LIST of the same type. The original LIST is untouched, but the destination LIST is completely overwritten by the contents of the copied LIST and any elements that existed in it prior to the copy are deleted. In other words, the destination LIST is CLEARed before the copy.
COPY <TEXT-LIST> TO <TEXT-LIST>COPY <NUMBER-LIST> TO <NUMBER-LIST>
DATA:foo IS TEXT LISTbar IS TEXT LISTPROCEDURE:PUSH "Hello there!" TO fooPUSH "How are you?" TO fooCOPY foo TO barDISPLAY bar:0 " " bar:1 CRLF# Will display "Hello there! How are you?"