trichview.support
Re: Deleting an item safely (2) |
Author |
Message |
Sergey Tkachenko |
Posted: 08/19/2004 23:21:27 If this operation must be undone/redone, deletion must be done by selecting and calling DeleteSelection. If you have RVData and ItemNo (index of item inside this RVData), the code is: RVData := RVData.Edit; RVData.SetSelectionBounds(ItemNo, RVData.GetOffsBeforeItem(ItemNo), ItemNo, RVData.GetOffsAfterItem(ItemNo)); RichViewEdit1.DeleteSelection; |
Powered by ABC Amber Outlook Express Converter