Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!uw-june!marty From: marty@uw-june.UUCP (Marty Sirkin) Newsgroups: comp.lang.pascal Subject: Re: TP4.0 strangness Message-ID: <3802@uw-june.UUCP> Date: 11 Dec 87 19:04:27 GMT References: <328@caus-dp.UUCP> Organization: U of Washington, CSCI, Seattle Lines: 31 Keywords: the WRITE doesn't work! Summary: Well... In article <328@caus-dp.UUCP>, marcos@caus-dp.UUCP (Marcos R. Della) writes: > TYPE st = string[255]; > mn_l = ^st; > ... > > if i < active^.menu then > begin > gotoxy(1,1); > insline; > WRITE(mn_l^); > > and I am getting an: > Error 113: Error in statment Even with typing in the code you gave in 4.0 I couldn't get it to generate an error 113! Sigh. I could get it to have errors, though, for the following reason. Assuming that you "USES" crt (for gotoxy et al), there is still a problem in trying to write out "mn_l^". After all, it is NOT a VAR, but a TYPE!!! I'm assuming that this was an error in typing. As it is written you will always get a compiler error. When I change it to being a VAR, the program compiles just fine... Hopefully someone else will post something helpful. If not, why don't you E-mail me a complete listing of the procedure as is. Maybe something will show up there. Marty Sirkin. P.S. You no longer need to define: string[255]. It's covered by the reserved type "string".