Autor Beitrag
torbi71
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Sa 21.07.07 23:41 
Hi,
bekomme ständig bei dieser Imap-Funktion einen "Range Check error".
Hab alles mögliche schon probiert, finde aber den Fehler leider nicht.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
procedure getTicket(mailbox:String);
var
TheFlags: TIdMessageFlagsSet;
TheUID: string;
i,mcount: integer;

begin


  Form1.IdImap41.SelectMailBox(mailbox);//zur mailbox wechseln
  mcount:=Form1.IdIMap41.MailBox.TotalMsgs;

  if(mcount>0then
  begin

    for i:=1 to mcount do
    begin

      Form1.IdImap41.GetUID(i,TheUID);
      Form1.IdImap41.UIDRetrieveFlags(TheUID, TheFlags)

    end;

  end;

end;


Für jede Hilfe schon Danke im vorraus.

Gruß Torben
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 21.07.07 23:59 
Moin!

Ich rate mal: :?
ausblenden Delphi-Quelltext
1:
for i:=1 to mcount do					

Sicher, dass das nicht 0 to mcount-1 sein muss? :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.