【发布时间】:2020-03-07 11:55:33
【问题描述】:
我有以下情况:
TMyFormClass = class of TMyForm
function IsMyClass(AClass: TFormClass);
begin
Result := AClass is TMyForm // Operator not applicable to this operand type
Result := AClass is TMyFormClass // Operator not applicable to this operand type
end;
这两行都没有构建,错误是运算符不适用于此操作数类型。
我该如何做这个比较?
【问题讨论】:
标签: delphi delphi-10.3-rio tform