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

BarRecordCollection.Replace

Replaces a bar record in this collection with a new bar record

Syntax

group.Bars.Replace(index,barrecord)

Parameters

index

Index of the bar record to be replaced.  The index can be a 1-based index or the name of the bar record

barrecord

The new bar record

Returns

None

Example

This example replaces the bar record at index 4 with a new bar record

group.Bars.Replace 4, newrecord

 

Copyright © 1999, Washington State Department of Transportation