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

BarRecordCollection.OnBarRecordAdded

Fires when a bar record is added to the collection

Syntax

handler_OnBarRecordAdded(newrecord)

Parameters

newrecord

The new bar record

Returns

None

Example

In this example, a message is displayed when a bar record is added to the collection

Dim With Events bars as BarRecordCollection
Set bars = group.Bars
...
Private Sub bars_OnBarRecordAdded(ByVal newRecord as BarRecord)
   MsgBox "Mark " + newRecord.Mark + " was added
End Sub

 

Copyright © 1999, Washington State Department of Transportation