From: Ron W. <rw...@my...> - 2000-09-18 01:47:50
|
I had to make one change to get it going with 2000. For reference I am using Windows 95. After turning on debug, at least here the criteria was never getting set. I had to comment out the 'if' that checks to see if you are retrieving from the calendar folder. I just forced it instead of checking by commenting out the 'if'. --Ron sub find_items { # Find first appointment matching the criteria my ($item); if ($parms{version} eq '97') { my $criteria; # if ($parms{folder} eq 'Calendar') { my $criteria = qq{[Start] >= "$parms{date} 12:00 AM" and [Start] <= "$parms{date_end} 11:59 PM"}; # } $item = $items->Find($criteria); print "item=$item items=$items crit=$criteria\n" if $parms{debug}; } else { if ($parms{folder} eq 'Calendar') { my $filter = $items->Filter; $filter->Fields->Add(0x00610040, "$parms{date} 12:00 AM"); $filter->Fields->Add(0x00600040, "$parms{date_end} 11:59 PM"); } $item = $items->GetFirst; } Bruce Winter wrote: > > > I'm trying the outlook.pl script with Outlook 2000 on W2k. I don't get any > > error, but it doesn't get any appointment. I noticed in the > > comments it says > > that "apparently" outlook 2k works like outlook 97, so I'm wondering if > > anybody has tested it? > > Hmmm, looks like it is not working here either :( It worked Ok when I was > on Outlook 98, but I recently upgraded to Outlook 2000, and not it seems > not. No errors, but no items found. > > I found a note on the old mailing list ( > http://www.egroups.com/messages/MisterHouse ) from Craig Schaeffer that > said it work Ok under Outlook 2000. Craig, have you tried it lately? > Maybe its a Win 2k think. > > Bruce > > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |