[lazarus] FPC Request

Martin Waldenburg Martin.Waldenburg at t-online.de
Sat Oct 23 03:12:34 EDT 1999


Hi!

> Another thing....
>
> In mwedit, Lines is defined as a TSTRINGS.
>
> They can reference each string by doing this
> Result := Lines[4];
>
> but FPC throws an error.  The way to fix it is to do this:
>
> Result := Lines.Strings[4];
>
> Any reason why this doesn't work?  Does it have to do with the "default"
>  declaration that doesn't work that tells the compiler that the property with
>  just a "default" after it's declaration in he class is the default property
>  you would reference when no reference is given?
>
> Understand that?

Yes. Only one array property can be declared as the default property
in Delphi.

Martin






More information about the Lazarus mailing list