Rohit Gupta wrote:
You dont think that To might be a reserved word and the Field might have some other name ??If its a field compiler should be able to tell (which it does as it says
[Error] App_Main.pas(28): Identifier expected but 'TO' found ) and compile without complaining (IMHO)
if compiler can detect that identifier is required why can't it check if TO is followed by '.'? If it is then its not an identifier and it can treat it as a Field.
Regards
Sandeep
Sandeep Chandra wrote:
Following procedure doesn't compile
procedure Tfrm_App_Main.FormCreate(Sender: TObject); var lMM : MailMessage; begin lMM := MailMessage.Create; lMM.To := '[EMAIL PROTECTED]';<--------------------Error line lMM.From := '[EMAIL PROTECTED]'; lMM.Subject := 'Test'; lMM.Body := ''; end;
This is the error which compiler gives.
[Error] App_Main.pas(28): Identifier expected but 'TO' found
Isn't this suppose to work?
It looks like a compiler bug to me.
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
