Frame saves with unknown property

Giganews Newsgroups
Subject:Frame saves with unknown property
Posted by: Tom deNeef (tdene…@qolor.nl)
Date:Sun, 31 Jan 2010

I'm using D6.
Just split off a lot of panels from a form into separate Tframes.
I define a TbaseFrame = class(Tframe) for some common code.
The actual frames are derived from TbaseFrame and as such declared in the
form.
In formCreate all the frames are created.
So far so good. It all works as intended.

However, when I've edited code in some of the frames, the *.dfm file will
now include lines that should not be there:
{code}
object MortFrame: TMortFrame
  Left = 0
  Top = 0
  Width = 198
  Height = 256
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = True        // <---- *****  !
  PixelsPerInch = 96                // <---- *****  !
  TextHeight = 13                    // <---- *****  !
  object MortVerslagPanel: TPanel
...
{code}

Running the app now creates an EreadError: "property Old CreateOrder does
not exist" at the point in FormCreate where the frame is created.

Why does it include these lines? and what should I do to prevent it ?
TIA
Tom

Replies