justin92330
Messages postés32Date d'inscriptionlundi 21 juillet 2008StatutMembreDernière intervention 1 octobre 2008 23 juil. 2008 à 10:57
C'est super y a plus ce message d'erreur mais y en a un autre un peu plus loin
:
Private Sub cmdAdd_Click()
Function Echange(lstDispo, LstExport)
End Function
Function Echange(lstSource As MSForms.ListBox, lstDestination As MSForms.ListBox)
Dim lgTmp As Long
If (lstSource.ListCount > 0) Then
If (lstSource.ListIndex > -1) Then
lgTmp = lstSource.ListIndex
lstDestination.AddItem lstSource.List(lgTmp)
lstDestination.ItemData(lstDestination.NewIndex) = lstSource.ItemData(lgTmp) <------------ message d'erreur a cette ligne : Propriété ou methode non géré par cet objet
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 23 juil. 2008 à 11:00
salut,
Private Sub cmdAdd_Click()
Function Echange(lstDispo, LstExport)
End Function
on appelle pas une fonction en écrivant FUNCTION
une fonction retourne un résultat
valeur = Echange(lstDispo, LstExport)
si ta fonction Echange ne retourne rien, fais en une procédure
Sub Echange(lstSource As ListBox, lstDestination As ListBox)
.......
End Sub
et appelle-la
Call Echange(lstDispo, LstExport) <hr size ="2" width="100%" />Prenez un instant pour répondre à [infomsg_SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
Vous n’avez pas trouvé la réponse que vous recherchez ?