View Issue Details

IDProjectCategoryView StatusLast Update
0006330JEDI VCL00 JVCL Componentspublic2020-05-19 09:50
ReporterchrvelAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionsuspended 
Product Version3.47 
Target VersionFixed in Version 
Summary0006330: jvInterpreterProgram, Com Object problem (ex: CreateOleObject('CDO.Message')), property "To" not accessible
DescriptionWhen 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 InformationThis line fails :
  objMessage.To:='xxxxxxxxxx@xxxx.xxx';

I am using JVCL 3.48
TagsNo tags attached.

Activities

obones

2014-12-04 15:00

administrator   ~0021078

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

obones

2020-05-19 09:50

administrator   ~0021885

No reply in a timely manner, suspending the issue

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
2020-05-19 09:50 obones Assigned To => obones
2020-05-19 09:50 obones Status feedback => resolved
2020-05-19 09:50 obones Resolution open => suspended
2020-05-19 09:50 obones Note Added: 0021885