You need to escape delphi reserved words with & So it would be:
lMM.&To := '[EMAIL PROTECTED]'; cheers, JED -----Original Message----- From: Sandeep Chandra [mailto:[EMAIL PROTECTED] Sent: 15 June 2004 6:42 AM To: NZ Borland Developers Group - Delphi List Subject: [DUG] D8.NET 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. Regards Sandeep _______________________________________________ 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
