Whenever I get the error "Left side cannot be assigned to" I look under
Project -> Options -> Compiler and tick the box in the left hand bottom
corner, labelled "Assignable Typed Constants". This allows you to assign
values to constants. This may help with your Readln???

Dave


-----Original Message-----
From: Ross Levis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 23 November 2002 13:30
To: Multiple recipients of list delphi
Subject: [DUG]: TEdit.Text


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/
---------------------------------------------------------------------------
    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