28 Nov
2016
28 Nov
'16
12:31 p.m.
Chris, I did as you said and that works. My confusion stems from a difference between V4 and Component Pascal. A Component Pascal CHAR is 2 bytes. One must say SHORTCHAR to get 1 byte. Also I didn't think the compiler would accept (if I had thought of it) a CHAR where it specifies a SYSTEM.BYTE. Why in heavens name does V4 Files even mention SYSTEM.BYTE? -Doug On 11/28/2016 2:33 AM, Chris Burrows wrote:
Hi Doug,
You don't need to use any SYSTEM facilities or casts in Oberon for this task.
Replace:
VAR b: SYSTEM.BYTE;
with:
VAR ch: CHAR;
Then you can say:
IF (ch = 0AX) OR (ch = 0DX) THEN ch := " " END;
Regards, Chris
Chris Burrows CFB Software http://www.astrobe.com
-- Danforth of the Greenwood