Hello, all.
I am having trouble initializing an array of NotesViewNavigators. When I inspect the initialization routine in the LotusScript debugger, when viewNavArr(1) is initialized, the value for viewNavArr(0) disappears; when viewNavArr(2) is initialized, viewNavArr(1) disappears, and so on. Is this a LotusScript limitation, or do I have a bug?
Thanks,
Brandon.
'
' Set up the views that we are going to use for our report.
'
Dim viewNames( 0 To 4 ) As String
Dim viewRoot As String
viewRoot = "Data\Hourly Data\By Server\"
viewNames( 0 ) = viewRoot + "Last 24 Hours"
viewNames( 1 ) = viewRoot + "Last 7 Days\By Hour of Day"
viewNames( 2 ) = viewRoot + "Last 7 Days\Show All"
viewNames( 3 ) = viewRoot + "Last 30 Days\By Hour Of Day"
viewNames( 4 ) = viewRoot + "Last 30 Days\Show All"
'
' Get the navigators for each of these views. We need the
' navigators so we can step through the views to grab the
' entries that have our totals on them.
'
Dim temp1 As NotesView
Dim viewNavArr( 0 To 4 ) As NotesViewNavigator
For i = 0 To 4
Set temp1 = dbLocal.GetView( viewNames( i ) )
Set viewNavArr( i ) = temp1.CreateViewNav
Next