Janet
2005-09-01 07:25:19 UTC
I Derive a field class from a standard field class:
type
TEStringField = class(TStringField)
...
end;
in my unit's Register procedure do this:
procedure Register;
begin
RegisterFields([TMyStringField]);
end;
When I build project, a compile error showed, it's said:
"Incompatible types: 'TFieldClass' and 'Class reference'."
What's this message mean? How should I modify my program?
Thanks in advance!
type
TEStringField = class(TStringField)
...
end;
in my unit's Register procedure do this:
procedure Register;
begin
RegisterFields([TMyStringField]);
end;
When I build project, a compile error showed, it's said:
"Incompatible types: 'TFieldClass' and 'Class reference'."
What's this message mean? How should I modify my program?
Thanks in advance!