Applies To
All
Purpose
Cut the specified steps Data and/or Control from the DIO block object.
Syntax
Object.Cut([enDioStep], [vFirstStep], [dwSteps])
The Cut 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 |
Val 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
Calling this method will cut the specified step’s data and range from the DioBlock as well as from the file and post it to the clipboard. The data can be pasted in different location in the file by using the Paste method. |
See Also