Problem initializing an array of NotesViewNavigators

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

Subject: Problem initializing an array of NotesViewNavigators

Apparently the problem was in generating the views while within the loop. If I move the .GetView statement out of the loop, the NotesViewNavigators are created just as they should be.

Thanks,

Brandon.

Subject: Re: Problem initializing an array of NotesViewNavigators

Just FYI - most Domino objects work that way. If you have an object reference that is used to obtain another and then lose scope of that reference usually your other derived handles are lost as well.