View Issue Details

IDProjectCategoryView StatusLast Update
0006330JEDI VCL00 JVCL Componentspublic2014-12-04 15:00
ReporterchrvelAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
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

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