[comp.lang.pascal] Turbo Pascal 5.5 Object Problem ???????

hvlstud2@sci.kun.nl (Margo Pulles) (01/29/91)

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)