2 messages in org.openoffice.fr.progRe: [prog] Méthode introuvable
FromSent OnAttachments
Francois GerbaudSep 28, 2004 7:27 am 
Bernard MarcellySep 28, 2004 8:01 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] Méthode introuvableActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Sep 28, 2004 8:01:43 am
List:org.openoffice.fr.prog

At 2004-09-28 16:27, Francois Gerbaud wrote:

Bonjour,

J'ai un souci sur le code suivant à la ligne Selection(i) = oListBox.StringItemList(Ligne)

Dim i as Integer Dim Ligne as Integer Dim Selection() as String For i = 0 To Ubound(oListBox.SelectedItems()) If oListBox.SelectedItems(i) > -1 Then Ligne = oListBox.getSelectedItemPos(i) msgbox "Ligne = " & Ligne Selection(i) = oListBox.StringItemList(Ligne) msgbox "Selection = " & Selection(i) End If Next i

Quelqu'un peut-il m'aider ? J'utilise bien Tools/ListBox en amont de mon code. Merci

StringItemList est une propriété du modèle du contrôle ListBox d'un dialogue. Dans ce codage oListBox devrait être le modèle du contrôle, pas le contrôle.

Bonne journée Bernard