trichview.com

trichview.support




Re: Saving imported text to DB Field


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/15/2002 8:58:10


> Thanks indeed this solved the problem! Your english is more then good

enough

> to have solved the problem for me.

>

> Not sure why this works though and I didn't see it in use in any of the

> provided database examples. Also I am not directly using any call to any

> stream methods that I know of. Perhaps AddNL is using them?


Tavo's explanations are correct.

You need to call Change, if you modify contents of editor by any methods

introduced in RichView (not RichViewEdit; see the help topic "Viewer vs

Editor" about difference between these methods). These methods include

LoadRVFFromStream and AddNL.

Editor does not know that it was updated if you use these methods, and you

need to inform it using Change.


Another important thing:

- call

if not rve.CanChange then exit;

at the beginning. For most cases, it is equivalent to table.Edit;

(this is also necessary only before modifying component with methods

introduced in RichView)


More details in my old posts, see the thread "LoadFromStream"


>

> For the use of others here is the modified code to make it work in a

> database field:






Powered by ABC Amber Outlook Express Converter