Copy Buffer

Description

This action can be used to copy all of the data stored in one
buffer to another. When using two buffers and copying from one to
the other, both buffers must have previously been created using the
Create Buffer action, and you
supply the unique buffer ID returned as the from/to arguments.

NOTE: You cannot copy to the same
buffer.

Action Syntax:

Arguments:

Argument

Description

Buffer

The buffer index (stored in a variable) to copy
from

Copy To

The buffer index (stored in a variable) to copy to

Example:

The above action block code will create a new buffer
and store its ID in a temporary variable. It then checks to see if
the buffer indexed in the given global variable exists, and if it
does then it is copied to the temporary buffer and the read/write
position reset back to the start, and if it doesn't exists then it
is created.