Description
Moves an item to a new position in the list
-
Return Type
-
None
-
Syntax
-
object.MoveInList ItemIndex, NewIndex
The MoveInList Method syntax has these parts: |
| object | An expression evaluating to an object of type McFeaturesList. | | ItemIndex | Required. A Long value. The zero-based position of the list item to be moved.
| | NewIndex | Required. A Long value. The zero-based position to where the item is to be moved. (e.g., 0 is the first list position and Count-1 is the last list position).
| Remarks
The Add method always appends a list item to the end of the list (unless the Name matches an existing item, in which case it replaces the existing item). So if you want to keep the list in some other order, you can move
Exceptions
Both the source ItemIndex and destination NewIndex numbers must be valid list indices (i.e., between 0 and Count-1).
|