> When I come to write the implementation part of the unit, what's the syntax
to refer to the property Table? If I use
> ...
> I get the error 'No member is provided to access property.'
That should be correct. It's something else that bugs. At least the
following compiles for me:
unit Simple;
{$mode objfpc}{$H+}
interface
uses
Classes;
type
TURLTable = class(TStringList)
private
Table: array of String;
public
procedure Insert(const s: String); overload;
end;
implementation
procedure TURLTable.Insert(const s: String);
var
i: Integer;
begin
i := Length(Table);
SetLength(Table,i + 1);
Table[i] := s;
end;
end.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-write-a-proper-Type-declaration-with-procedures-tp4045029p4045031.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus