19. Dezember 2006 18:16
The stream cannot find a zero-terminated string.
The stream may be invalid, or the (variable or requested) size may be too small.
CLEAR(InStrm);
EDIMess.CALCFIELDS("EDI Content");
EDIMess."EDI Content".CREATEINSTREAM(InStrm);
WHILE NOT (InStrm.EOS()) DO BEGIN // copy entire Message in TempString Array
f := f + 1;
InStrm.READTEXT(MQStrTemp2); // Use temp variable as there is a bug with
MQStrTemp[f] := MQStrTemp2; // readtext in arrays
END;
19. Dezember 2006 20:23
bla
blubb
dies ist ein test
dummdidumm
lala
nochmal test 1-2-3
huhu
bla
blubber
tescht 5-6-7
// --- Prepare
CLEAR(Picture);
f.OPEN('C:\test2.txt');
f.CREATEINSTREAM(ins);
Picture.Picture.CREATEOUTSTREAM(outs);
COPYSTREAM(outs, ins);
f.CLOSE();
// --- Test 1 READTEXT
Picture.Picture.CREATEINSTREAM(ins);
i := 0;
WHILE NOT (ins.EOS()) DO BEGIN
i := i + 1;
ins.READTEXT(TempText);
TempArray[i] := TempText;
END;
20. Dezember 2006 12:30
Name DataType Subtype Length
sep Char
sepstr Text 30
Str Text 600
sep := 10; // <LF>
sepstr := '%1';
sepstr := STRSUBSTNO(sepstr,sep);
FOR i := 1 TO STRLEN(Str) DO BEGIN
IF COPYSTR(Str,i,1) = Sep THEN BEGIN
...
END;
END;