Why use IROStrings for WideMemo and how to disable USE_IROSTRINGS_FOR_WIDEMEMO?

I fail to understand the need to use IROStrings by default for WideMemo fields as the IROStrings.Text property will always return the text value with an additional trailing #13#10 which wasn’t in the original content.

I’ve tried to un-define USE_IROSTRINGS_FOR_WIDEMEMO in the DataAbstract_user.inc but it doesn’t seem to work as there are many DataAbstract.inc files in the directory and most of them don’t link to that file.

What would you suggest as the best solution to this problem ?

Hi,

undefining USE_IROSTRINGS_FOR_WIDEMEMO in the DataAbstract_user.inc should be enough.

have you rebuilt packages (.bpl) after adding {$UNDEF USE_IROSTRINGS_FOR_WIDEMEMO} ?

you can do it manually or launch C:\Program Files (x86)\RemObjects Software\Build\install_DA.cmd with admin rights

That worked. Thank you. I still fail to understand the purpose of IROStrings for memos though, or at least, it should provide a way to get the exact raw content without that extra #13#10 at the end.

Hi,

we had request at [69151 Open] Generating strongly-typed classes from DA-schema, datWideMemo & datWideString mapping