CompuServe Messages

#M2Sprint problem

    11-Mar-91 01:22:02
Fm: David Czaya 73445,407
To: Harry Callesis 72025,117
Harry, Your problem wasn't too difficult. What happened is that you were attempting to pass a TextAttr RECORD to a procedure. PROCEDURE InitScreenData(VAR sp: ScreenPtr; ta: TextAttr); This isn't too good. You have to pass the address of the RECORD, not the RECORD itself. You can do this in one of two ways… PROCEDURE InitScreenData(VAR sp: ScreenPtr; ta: TextAttrPtr); PROCEDURE InitScreenData(VAR sp: ScreenPtr; VAR ta: TextAttrPtr); The first is preferred (I guess by me). The second way (using the VAR) is technically correct. It is a "variable parameter" and the address of the argument is passed to the procedure. David Czaya