Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
Setting filters |
Mon, Jan 4 2010 12:14 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | D6, DBISAM V4.25b5
I've just changed the code in my mail and news client because I (finally) realised it wasn't working properly. I can't just change the filter or just refresh the table I have to explicitly turn the filter off and back on. This may be WAD, or fixed in the intervening years but just in case. // To's first Recipients.Filtered := False; Recipients.Filter := '_List = -1 OR _List = 0'; Recipients.Filtered := True; if Recipients.RecordCount > 0 then ReplaceHeaderLine('To', recipList, sl); // Now Cc's Recipients.Filtered := False; Recipients.Filter := '_List = 1'; Recipients.Filtered := True; if Recipients.RecordCount > 0 then ReplaceHeaderLine('Cc', recipList, sl); // Next Bcc's Recipients.Filtered := False; Recipients.Filter := '_List = 2'; Recipients.Filtered := True; if Recipients.RecordCount > 1 then begin ReplaceHeaderLine('Bcc', recipList, sl); MsgOpts.HasBccs := True; end else MsgOpts.HasBccs := False; // Roy Lambert |
Tue, Jan 5 2010 5:24 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< I've just changed the code in my mail and news client because I (finally) realised it wasn't working properly. I can't just change the filter or just refresh the table I have to explicitly turn the filter off and back on. >> I think this is working okay now, but I'll double-check. I can't find any incident reports on it, so it may have been fixed as part of another fix. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Mar 19 2010 4:00 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
Yeah, it appears to be working fine now. The following works just fine: with DBISAMTable1 do begin Filter:='State=''FL'''; Filtered:=True; Filter:='State=''HI'''; end; The result is all records with a State of 'HI'. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, May 19, 2024 at 08:46 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |