I've got
var
statusText: Text;
...
statusText := ErrOutput;
and then am later assigning statusText to a logfile if possible. The compiler objects if I try to compare statusText to the original ErrOutput device to see whether the assignment was actually done.
watchp0xcode.pas(1341,14) Error: Incompatible types: got "Text" expected "Int64"
The app is on Linux, but is there a "right" way of comparing text devices/handles?
(Later:) For the moment at least I'm using code as below, and have verified that on Linux initialisation (as shown above) sets the .Handle field to the same handle rather than to a duplicate (i.e. different numeric value but referring to the same device).
if TextRec(statusText).Handle <> TextRec(ErrOutput).Handle then
...
MarkMLl