Tech Tutorials Database
GeekArticles Programming Delphi
 

"To" Property is not compiled

 
Author: qc.borland.com
Category: Delphi
Comments (0)

QC#: 14073 Version: 9.0 Status: Closed defect, no action required Resolution: Behavior is as designed Description: I cannot compile the following bug-free source, because Delphi recognizes the "to" of "MyMail.To" as a reserved word, but it is a property name here:
uses System.Web.Mail;
var
MyMail: System.Web.Mail.MailMessage;
begin
MyMail := System.Web.Mail.MailMessage.Create;
MyMail.From := 'me@work.de';
MyMail.To := 'chief@work.de';
// ...
System.Web.Mail.SmtpMail.SmtpServer := 'mail.gmx.net';
System.Web.Mail.SmtpMail.Send(MyMail);
end;

Read More...




Sponsored Links




Read Next: Demystifying Class Helpers in Delphi 2005



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe