I'll ask Dmitry to come over and take a look, since he's the resident Delphi
expert. Can you give us an example of what your Restrict string actually
looks like with all the terms evaluated? (FWIW, I always build the Restrict
string separately, rather than within the Restrict statement itself -- makes
it much easier to debug.)
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
Quote:
> ses petits doigts-doigts :
> > I think you mean IncludeRecurrences instead of GetRecurrences. You
> > didn't show us what kind of loop you're using to work with the
> > collection returned by Restrict.
> > --
> Ok, so here's the code (delphi)
> calendrierProfil.Sort('[Start]');
> calendrierProfil.IncludeRecurrences := True;
> calendrierProfil.Restrict('[Start] >= ''' +DateToStr(debutPeriode) +'
> 00:01 AM'' And [Start] <= ''' +DateTimeToStr(finPeriode) +' 23:59 PM''');
> // writeln(fichierExport, '[Start] >= ''' +DateToStr(debutPeriode)
> +' 00:01 AM'' And [Start] <= ''' +DateTimeToStr(finPeriode) +' 23:59
> PM''');
> Enum := TEnumVariant.create(calendrierProfil);
> while(Enum.ForEach(rdv)) do
> begin
> writeln(fichierExport, rdv.subject);
> end;
> it's like a :
> for each rdv in Enum loop ... end loop;
> You see, I restrict on two dates, then I includeRecurrences (sorry for
> the mistake, I didn't remember...), then I extract.
> Is it enough ?
> Thank you