Autor Beitrag
schakal242
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 33

Win XP Prof.
D6 Prof
BeitragVerfasst: Mo 07.04.03 17:19 
Hallo,

Nach der Umstellung von Indy8 auf 9 bekomme ich bei folgendem Code
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
begin
   SL:= TStringList.Create;
   msg.Clear;
   Pop.Retrieve(lvHeaders.Selected.Index+1, Msg);
   parts:=Msg.MessageParts.Count;
   showmessage(IntToStr(Msg.MessageParts.Count));
   TIDAttachment(Msg.MessageParts.Items[2]).SaveToFile('c:\test.txt');
   .....

die Fehlermeldung ListIndex(2) out of bounds...

Jede Mail soll also einen Index von 2 haben???

Moderiert von user profile iconTino: Code-Tags hinzugefügt.