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

Reply via email to