cs_Cameleon69
Messages postés98Date d'inscriptionlundi 31 décembre 2001StatutMembreDernière intervention 7 août 2005
-
16 oct. 2003 à 10:44
ptitboo
Messages postés4Date d'inscriptionvendredi 20 juin 2003StatutMembreDernière intervention 1 avril 2007
-
8 juin 2005 à 17:14
Bonjour
Je cherche a retourner un tableau par une fonction en vb quelqu'un aurait-il dejà fait cela, je ne trouve pas svp help!
tardigrade
Messages postés208Date d'inscriptionmercredi 22 janvier 2003StatutMembreDernière intervention 2 décembre 2008 17 oct. 2003 à 19:05
Option Explicit
Private Function Retourne_Tableau() As String()
Dim Tableau1(1 To 3) As String
Tableau1(1) = "toto"
Tableau1(2) = "titi"
Tableau1(3) = "tutu"
Retourne_Tableau = Tableau1
End Function
Private Sub Form_Load()
Dim Tableau2() As String
Tableau2 = Retourne_Tableau
Debug.Print Tableau2(1)
Debug.Print Tableau2(3)
Debug.Print Tableau2(2)
End Sub