Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by John
Thu, 06 Oct 2005 19:57
Little Question about IdIMAP4->DeleteMsgs()
Author: John
Date: Thu, 06 Oct 2005 19:57
Date: Thu, 06 Oct 2005 19:57
10 lines
1382 bytes
1382 bytes
Sorry for the many questions... I need to delete some messages from my mailbox. In the docs I found the function "DeleteMsgs(const AMsgNumList: array of Integer): Boolean;". I use C++Builder 6 but the compiler wants 2 parameters from me: "DeleteMsgs(const int *, const int)". For what is the second parameter used? Can you give me an example, please? Sorry for my stupid questions. Thanks in advance! Indy 9.0.18, BCB 6 Pro + SP4, Comp: TIdIMAP4
Re: Little Question about IdIMAP4->DeleteMsgs()
Author: Remy Lebeau (TeamB)
Date: Thu, 06 Oct 2005 23:27
Date: Thu, 06 Oct 2005 23:27
20 lines
1436 bytes
1436 bytes
"John" <qwertzuiopmiller@web.de> wrote in message
news:4345813e@newsgroups.borland.com...
> I use C++Builder 6 but the compiler wants 2 parameters from
> me: "DeleteMsgs(const int *, const int)". For what is the second
> parameter used?
The high bound of the array, in other words the last index in the array.
You can use the ARRAYOFCONST macro to specify the array:
IdIMAP4->DeleteMsgs( ARRAYOFCONST((1, 2, 3, 4, 5)) );
Or the OPENARRAY macro:
IdIMAP4->DeleteMsgs( OPENARRAY(int, (1, 2, 3, 4, 5)) );
Gambit
Re: Little Question about IdIMAP4->DeleteMsgs()
Author: John
Date: Fri, 07 Oct 2005 10:11
Date: Fri, 07 Oct 2005 10:11
1 lines
1067 bytes
1067 bytes
Thank you, again!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads