Ecoute,
Je ne suis pas VCB.Netiste (comme déjà dit)
voilà (entre autres) deux manières qui fonctionneraient sous VB6 (à toi d'adapter... le principe doit être le même) :
Private Type toto
titi As Integer
tata As Integer
End Type
Private Sub Command1_Click()
MsgBox lafonc(4, 7).titi & vbCrLf & lafonc(4, 7).tata
MsgBox lafoncaut(4, 7)(0) & vbCrLf & lafoncaut(4, 7)(1)
End Sub
Private Function lafonc(A As Integer, B As Integer) As toto ' ici en utilisant une structure (UserType, donc)
lafonc.tata = A + B
lafonc.titi = A - B
End Function
Private Function lafoncaut(A As Integer, B As Integer) As Variant ' ici en utilisant un Array
lafoncaut = Array(A - B, A + B)
End Function