Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Open Tools API    [ Add a report in this area ]  
Report #:  77268   Status: Closed
IOTAOptions.Values['UsePackages'] and Values['Packages']  doesn't work
Project:  Delphi Build #:  14.0.3513.24210
Version:    14.0 Submitted By:   Vladimir Kudelin
Report Type:  Basic functionality failure Date Reported:  9/2/2009 1:04:46 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   272721
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
Description
I've used the following code in my IDE package:

CurrentProject.GetProjectOptions.Values['UsePackages'] := True;
CurrentProject.GetProjectOptions.Values['Packages'] := ed_Packages.Text;

(where CurrentProject is active IOTAProject)

... and this works fine in D6-D2007, but doesn't in D2009/D2010. When I go to the project's options, I just see the old option for "Build with runtime packages".

The following code doesn't help either:
CurrentProject.GetProjectOptions.SetOptionValue('UsePackages', True);
CurrentProject.GetProjectOptions.SetOptionValue('Packages', ed_Packages.Text);
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

Erik Berry at 9/2/2009 11:56:20 AM -
I verified this bug using the GExperts Project Option Sets tool.  I checked the UsePackages option there, saved the option set, changed the "Use packages" option in the IDE's project options dialog box, applied the GExperts option set, and then "Use packages" option in the IDE dialog did not change back to the original value.  The value the IDE stores internally might be changing, but the IDE's project options dialog does not change to reflect the new value.

Server Response from: ETNACODE01