Home
Up
Count
Item
Add
Remove
Replace
Sort
Move
MoveUp
MoveDown
OnBarRecordAdded
OnBarRecordChanged
OnBarRecordRemoved
OnBarRecordsSorted
OnBarRecordMoved

BarRecordCollection.Move

Moves a bar record within the collection

Syntax

group.Bars.Move(barrec,moveType,target)

Parameters

barrec

Bar record to be moved. This can be the mark number, index, or a BarRecord object. If dupiclate mark numbers exist, the first one will be selected

moveType

Specifies where the bar record is to be moved relative to the target bar record. (mtBefore,mtAfter).

target

Target bar record. This is the bar record that barrec will be moved next to. This can be the mark number, index, or a BarRecord object. If dupiclate mark numbers exist, the first one will be selected

Returns

None

Example

This example moves the bar record at index 10 immedately after the bar record at index 2

group.Bars.Move 10, mtAfter, 2

 

Copyright © 1999, Washington State Department of Transportation