Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: Search in Delphi Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
John Muller
Newbie
Newbie


Joined: 18 October 2009
Online Status: Offline
Posts: 5
Posted: 26 October 2009 at 8:12am | IP Logged Quote John Muller

Hi,

I would like to iterate the array that is
generated by Pop3.search in Delphi.

This code:
var
i: integer;
SearchArray: OLEVariant;
begin
SearchArray := MyPop.Search;
    for i := 1 to High(SearchArray) do
      ShowMessage(SearchArray);
end;

does not work (types not compatible). How can
I do what I need?

Thanks. Uli
Back to Top View John Muller's Profile Search for other posts by John Muller
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 15 March 2010 at 11:42am | IP Logged Quote Alex

People keep asking this, here it is:
Code:

var
  ...
  arrSearchResults: OleVariant;
  strUID: string;
  I: integer;

begin
...
arrSearchResults := objPOP3.Search();
for I := VarArrayLowBound(arrSearchResults, 1) to VarArrayHighBound(arrSearchResults, 1) do
begin
  strUID := arrSearchResults;
end;


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide