Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!spool2.mu.edu!uunet!mcsun!hp4nl!sci.kun.nl From: hvlstud2@sci.kun.nl (Margo Pulles) Newsgroups: comp.lang.pascal Subject: Turbo Pascal 5.5 Object Problem ??????? Message-ID: <2697@wn1.sci.kun.nl> Date: 28 Jan 91 19:52:51 GMT Sender: root@sci.kun.nl Organization: University of Nijmegen, The Netherlands Lines: 31 Hello reader, My friend has a problem with Turbo Pascal 5.5. When he declares a OBJECT and uses the statement With x Do it sometimes goes wrong. for example : ... x.init(str); {str is a string, every thing works well} with x do begin init(str); {str contains rubbish after calling the function init} ..... end; .... I hope anybody knows the answer ? Maybe it isn't possible to use with .. do for objects. A suggestion as buying T.P. 6.0 is not useful because he 's working at a company and it isn't his decision to buy the new version of Turbo Pascal. Thanks a lot , Gert (my friend) Margo Pulles ( e-mail : hvlstud2@sci.kun.nl)