OTX Reference  
OpenTestSystem.Otx.Core.Actions.ListRemoveItems Class Reference

Remove list items More...

Inheritance diagram for OpenTestSystem.Otx.Core.Actions.ListRemoveItems:
Inheritance graph

Public Attributes

NumericTerm count
 Describes a amount of list items. More...
 
NumericTerm index
 Describes a position in a list. The first item in a list has the index value 0. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ListModifier
ListVariable list
 Describes the reference to a List. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Remove list items

The ListRemoveItems activity removes an amount (Count) of Item from a list at a defined position (Index).

Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if the index is not in the list (index < 0 or index > length-1 of list) or count is negative (count < 0).
Syntax
ListRemoveItems(ListVariable, IntegerTerm, IntegerTerm);
Examples
// Local Declarations
List<Integer> List1 = {1, 2, 3};
// Flow
ListRemoveItems(List1, 0, 3);

Member Data Documentation

◆ count

NumericTerm OpenTestSystem.Otx.Core.Actions.ListRemoveItems.count

Describes a amount of list items.

◆ index

NumericTerm OpenTestSystem.Otx.Core.Actions.ListRemoveItems.index

Describes a position in a list. The first item in a list has the index value 0.