trichview.com

trichview.support




Re: Problem with Saving DBRichViewEdit


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/01/2005 20:56:54


Yes, this is the case described in the Example 1 in the help topic about

TDBRichViewEdit.

Viewer-style methods (like SetItemTextA) do not inform editor that its

content is changed.


The general scheme of modifying DBRichViewEdit with viewer-style methods:


if dbrve.CanChange then

begin

   // make changes here

   dbrve.Change;

   table.Post; { if you want to save immediately,

   otherwise use dbrve.Format }

end;


That example suggests using table.Edit instead of dbrve.CanChange, but

CanChange is better.





Powered by ABC Amber Outlook Express Converter