Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006330 [JEDI VCL] 00 JVCL Components major always 2014-09-23 16:23 2014-12-04 15:00
Reporter chrvel View Status public  
Assigned To
Priority normal Resolution open  
Status feedback   Product Version 3.47
Summary 0006330: jvInterpreterProgram, Com Object problem (ex: CreateOleObject('CDO.Message')), property "To" not accessible
Description When I use the following code :

Procedure sendmail;
var objMessage:Olevariant;
begin
  objMessage:=CreateOleObject('CDO.Message');
  objMessage.Subject:='Test';
  objMessage.From:='xxxxx@xxxxx.xxx';
  objMessage.To:='xxxxxxxxxx@xxxx.xxx';
  .....
  objMessage.Configuration.Fields.Update;
  objMessage.Send;
end;

I get an error : Error in unit 'xxxxx' on line xx: Expression expected but 'To' found.
Additional Information This line fails :
  objMessage.To:='xxxxxxxxxx@xxxx.xxx';

I am using JVCL 3.48
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0021078)
obones (administrator)
2014-12-04 15:00

Please provide the zipped sources of a sample application showing this.
Note that it's most likely because "To" is a reserved keyword, maybe you could try prefixing it with the & prefix

- Issue History
Date Modified Username Field Change
2014-09-23 16:23 chrvel New Issue
2014-12-04 15:00 obones Note Added: 0021078
2014-12-04 15:00 obones Status new => feedback


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker