WPCubed Product Support

Losing text in TDBRichText

Hello

If I add some text to the RichText I lose it if I do not move records.

How can I force the component to save the data? I need something like DBRichText.postchanges.

Is there a procedure that I should be using?

I have NoUpdateonExit and NoResetOnEscape set to false.

Thanks.

Rob.

#1 ♥ 0
5.1k Views 2 users read 2 min
support

Hi,

Usually esspecially editing text triggers the saving of the data. I would recommenn to use the TWPRichText and read/write the data through the property AsString or LoadFormSTream/SaveToStream.

That can be implemented very easily using the events of the dataset and has the benfit that you can post the data wehn YOU want.

In youre case maybe a
if DataSet.Editing then DataSet.Post
in Form.OnClose is missing ?

Julian

#2 ♥ 0

Julian

I understand what you say but at present I am comitted to using a databound RichText.

I think I have narrowed down the problem.

If I add text using RichText.InputString(MyString, 0) it does not seem to register as a change. The string appears but if the user moves to another record the string is not saved.

I have added RichText.Modified := True but it does still not save.

How can I ensure that a modification is registered when I use InputString?

Thanks.

Rob.

#3 ♥ 0
support

How can I ensure that a modification is registered when I use InputString?

call up function Changingbefore the modification[/quote]

#4 ♥ 0
This category is archived. No new posts are possible.