'Class module
Sub Class_Globals
Dim name(200) As String
Dim SQL1 As SQL
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
End Sub
'Gets all names from the database and stores it in the string
Public Sub GetNames
For i = 1 To 200
name(i) = SQL1.ExecQuerySingleResult("SELECT name" & i & " FROM names WHERE id = 1")
Next
End Sub
'Displays the name of the requested item
Public Sub DisplayName(item)
Return name(item)
End Sub