Applies To
All
Purpose
Delete the specified step’s Data and/or Control from all the boards in the DIO file.
Syntax
Object.DeleteSteps (enDioStep, vFirstStep, dwSteps, [vFirstChannel], [vLastChannel])
The DeleteSteps Method syntax has the following parts:
Name |
Type |
Description |
Object |
DioFile |
DioFile object |
enDioStep |
enumDioStep |
Integer specifying the operation. |
vFirstStep |
Val Variant |
Start step in the file specified by either the step number or the step name. |
dwSteps |
DWORD |
Number of steps to delete. |
vFirstChannel |
Variant |
Optional - First channel number in the block. Channel number specified by either channel label or the channel number. Default is the first channel. |
vLastChannel |
Variant |
Optional - Last channel number in the block. Channel number specified by either channel label or the channel number. Default is the last channel. |
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). |
See Also