Eco + Enumerated Types

From: Kevin (kevinbe71_at_y_a_h_o_o.c_o_m)
Date: 03/30/04


Date: Tue, 30 Mar 2004 09:01:25 -0600

I posted this to b.p.d.m.eco (3/26/2004 subject "Enumerated Types") but
no-one has replied yet so I thought I'd try posting it here...

>>>>

Hi,

I've only been working with Delphi 8 and ECO for an hour or so, so I'm a
complete newbie! I'm sure this is pretty easily dealt with...

I tried designing a class with a property that was an enumerated type:
TSomeType = (stNone, stValue1, stValue2);

I then included this in one of my classes and tried a "Tutorial 1" type
app (i.e. a simple data grid with all columns displayed for the class).

When I tried to insert a record I received this error:

System.FormatException
"Input string was not in a correct format."

How are you meant to deal with enumerated types?? I assume that some
kind of conversion is necessary so that the data can be represented in
the grid. How do you do this with ECO?

Thanks,
Kevin.



Relevant Pages

  • Re: Have they left?
    ... > Any idea if ECO 3 now supports Enumerated types? ... > gripes about it when I tried it in the trial version. ... Perhaps you should ask in the ECO ng. ... The best way to bug Borland about bugs. ...
    (borland.public.delphi.non-technical)
  • Re: Delphi 2005 Upgrade Pricing
    ... >> included in Delphi 8 Architect is the OptimizeIt profiler. ... > So what was so wrong with the D8 ECO? ... seems that enumerated types weren't propertly supported in ECO 1. ...
    (borland.public.delphi.non-technical)