How to import a text block to a field

Das Goravani goravanis at
Thu Oct 7 19:57:47 UTC 2021

> On Oct 7, 2021, at 3:27 PM, Rudolf Gautschi <galenus at> wrote:
> Do FileOps.$readentirefile(lCharacterPath,lBinaryField)
> Calculate #S1 as utf8tochar(lBinaryField)

That is short and slick.
I love it.
Much better than what I do. Which is:

Do #L1.$define(icTextLetter)
Set import file name [icHTMLFilePath]
Prepare for import from file One field per line
Import data #L1
Calculate icTextLetter as ''
For #L1.$line from 1 to #L1.$linecount step 1
  Calculate icTextLetter as con(icTextLetter,pick(len(icTextLetter)>0,'',chr(13)),#L1.icTextLetter)
End For

More information about the omnisdev-en mailing list