Hi,
that is the context: to take the saved rtf file (blob) from database and put it in a richtext datawindow, so if user make changes,check if changes are and save back to database. PB 12.5.2. build5602 oracle 11g
i have following code:
dw_rtf.dataobject = "dw_rtf"
dw_rtf.settransobject(sqlca)
dw_rtfr.insertrow(1)
dw_rtf.visible = true
dw_rtf.object.datawindow.RichText.readonly='NO'
dw_rtf.selecttextall(Detail!)
dw_rtf.pastertf(string(iblob_cr,EncodingANSI!))
is_original_texte = dw_rtf.copyrtf(false)
comparing is_original_texte to string(iblob_cr,EncodingANSI!) are different, why? Here the user doesn't change nothing, Do copyrtf change the rtf text or something?
is_modified_texte = dw_rtf.copyrtf(false)
Case 1: No changes made on WinXP
The user doesn't make changes, then when check if the system propose him to save with pos(is_original_texte,is_modified_texte) = 0, on WinXP the system doesn't propose to save but
the same case on Win7 64 bit the system propose it, why???? On both system it must be no changes no save.
Dome ideas? Workaround?
Thanks.
Regards,
Marko