L
LoveKilly
Unregistered / Unconfirmed
GUEST, unregistred user!
TRecordset = type string;
TRecordsetProperty = class(TStringProperty)
public
function GetAttributes: TPropertyAttributes; override;
procedure GetValues(Proc: TGetStrProc); override;
end;
// ...
function TRecordsetProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paValueList, paSortList, paMultiSelect];
end;
procedure TRecordsetProperty.GetValues(Proc: TGetStrProc);
begin
Proc('a');
Proc('b');
Proc('c');
end;
TRecordsetProperty = class(TStringProperty)
public
function GetAttributes: TPropertyAttributes; override;
procedure GetValues(Proc: TGetStrProc); override;
end;
// ...
function TRecordsetProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paValueList, paSortList, paMultiSelect];
end;
procedure TRecordsetProperty.GetValues(Proc: TGetStrProc);
begin
Proc('a');
Proc('b');
Proc('c');
end;