27. April 2020 15:31
28. April 2020 10:07
7. Mai 2020 16:52
Name DataType Subtype Length
myText Text
StreamIn InStream
StreamReader DotNet System.IO.StreamReader.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Encoding DotNet System.Text.Encoding.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Blob2Text() : Text
CALCFIELDS(BlobField);
IF NOT BlobField.HASVALUE THEN
EXIT('')
ELSE BEGIN
BlobField.CREATEINSTREAM(StreamIn);
StreamReader := StreamReader.StreamReader(StreamIn,Encoding.UTF8,TRUE);
myText := StreamReader.ReadToEnd;
StreamReader.Close;
EXIT(myText)
END;
Name DataType Subtype Length
StreamOut OutStream
StreamWriter DotNet System.IO.StreamWriter.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Encoding DotNet System.Text.Encoding.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Text2Blob(myText : Text)
CLEAR(BlobField);
IF myText <> '' THEN BEGIN
BlobField.CREATEOUTSTREAM(StreamOut);
StreamWriter := StreamWriter.StreamWriter(StreamOut,Encoding.UTF8);
StreamWriter.Write(myText);
StreamWriter.Flush;
StreamWriter.Close;
END;