OVH Cloud OVH Cloud

function retourne collection??

1 réponse
Avatar
Zeg
Une fonction peut elle retourner une collection?
Merci

1 réponse

Avatar
François Picalausa
Hello,

Comme pour n'importe quel objet:

Private Function GetMyCol() As Collection
Set GetMyCol = New Collection ' = m_MaCollection_a_retourner
End Function

Dim MyCollection As Collection
Set MyCollection = GetMyCol

--
François Picalausa (MVP VB)
http://faq.vb.free.fr --- http://msdn.microsoft.com
http://apisvb.europe.webmatrixhosting.net

"Zeg" a écrit dans le message de
news:40e17cce$0$29381$
Une fonction peut elle retourner une collection?