Problem using a variable in: Set db = New NotesDatabase . .

I am attempting to loop through a bunch of databases, but I think I’m causing a
problem when I try to {Set db = New NotesDatabase( “”, xyz(i) )]
with a variable for the db name instead of a text string in quotes.

Dim xyz List As String
xyz(“01”) = “db1.nsf”
xyz(“02”) = “db2.nsf”
xyz(“03”) = “db3.nsf”
Forall i In xyz
Set db = New NotesDatabase( “”, xyz(i) )
…do stuff here…
End ForAll

Anyone know if there’s a way to make this work?

Subject: Problem using a variable in: Set db = New NotesDatabase . . .

Set db = New NotesDatabase(“”, i)