Copy Method (DioBlock)

Applies To

All

Purpose

Copy the specified steps Data and/or Control from the DIO block object to be paste in different step.

Syntax

Object.Copy ([enDioStep], [vFirstStep], [dwSteps])

 

The Copy method syntax has the following parts:

Name
Type
Description
Object
DioBlock
DioBlock object
enDioStep
enumDioStep
Optional - Integer specifying data type to be cut. Default data type is dioStepDataAndCommand.
vFirstStep
Variant
Optional - Starting step number in the block. Step number specified by either the step label or the step number. Default is all the steps on the DioBlock.
dwSteps
DWORD
Optional - Number of steps to delete. Default is all the steps in the DioBlock after vFirstStep.

Where

enumDioStep can be one of the following:

Name
Value
Description
dioStepData
0
Deletes selected vector data. Remaining data is moved down the number of steps deleted. Zeros replace data at the high end. Commands and labels remain at the same step. Only data is deleted.
dioStepCommand
1
Deletes selected command steps. Remaining commands are moved down the number of commands deleted. Steps at the end are replaced by NO OPS. Jump references to and from deleted steps are voided.
dioStepDataAndCommand
2
Deletes both data and commands at the selected step(s) and channel(s).

Comments

Copying a block to the file object is done in two steps first copy the block to the clipboard set FileFirstStep and copy the block to the file object using the Paste method.

 

See Also

FileFirstStep, Group, Steps