Option Explicit

Function Main(ByVal finBL, ByVal CollectionLoans, ByVal CollectionLoansView, ByVal UserParameter) 'VBScript
'VBA Function Main(ByVal finBL As ISfinSupport, ByVal CollectionLoans As finCollectionLoans, ByVal CollectionLoansView As finCollectionLoansView, ByVal UserParameter As String)

' Function should iterate the CollectionLoans Collection adding entries to CollectionLoansView where required

Dim CollectionLoan 'As finCollectionLoan

  ' Function should iterate the CollectionLoans Collection adding entries to CollectionLoansView where required
  For Each CollectionLoan In CollectionLoans
    If UCase(Left(CollectionLoan.Name,1)) = UCase(UserParameter) Then
      CollectionLoansView.Add CollectionLoan
    End If
  Next

End Function
