Watch, Follow, &
Connect with Us
Public Report
Report From:    [ Add a report in this area ]  
Report #:  22938   Status: Reported
Faulty error messages using simple types in deeper namespaces
Project:   Build #:  10.0.2166.28377
Version:    10.0 Submitted By:   Horst Reichert
Report Type:  Minor failure / Design problem Date Reported:  12/30/2005 6:13:52 AM
Severity:    Commonly encountered problem Last Updated: 12/30/2005 6:14:47 AM
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: None
Description
see Steps
Steps to Reproduce:
1. Create a package project (attached NameSpace.Test.bdsproj)
2. Add a new Component for WinForms class (attached NameSpace.Test.AComponent.pas)
3. To the source add a simple enumerations type as:

type
  TSomeType = (One, Two);

4.Define a property using this type:

  published
    property SomeType: TSomeType read FSomeType write FSomeType;

5. Build the project;
6. Add the new package to the components palette using <Component><Installed .net Components> <Select an Assembly> select NameSpace.Test.dll

7. Create a WinForms test application  (attached Project2.bdsproj)
8. Drop a TComponent to the form
9. Run the project it will compile fine
10. Close the project and open again

The message line will show:
The field 'One' could not be found on the target object.  Make sure that the field is defined as an instance variable on the target object and has the correct scope.
Workarounds
None
Attachment
NameSpaceTest.zip
Comments

None

Server Response from: ETNACODE01