I'm finding it a hassle that I can't pass TEdit.Text strings as Var parameters in procedures, and can't specify them in readln commands.

With Var parameters, I receive the compiler error "Constant Object cannot be passed as a var parameter.
With Readln(MyTextfile, MyEdit.Text), I receive the compiler error "Left side cannot be assigned to".

Is there anyway around these problems or am I stuck with using string variables and assigning the Text field from the string?

Cheers,
Ross.

---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to