[lazarus] FPC Request
Shane Miller
SMiller1 at stvgb.org
Mon Oct 25 09:24:45 EDT 1999
Actually, this DOES compiler in Delphi, but not FPC.
Shane
>>> Martin Waldenburg <Martin.Waldenburg at t-online.de> 10/23/99 02:12AM >>>
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
_________________________________________________________________
To unsubscribe: mail lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list