変数の値が型宣言の範囲内にあるかどうかをどのように判断できますか? Ex。Delphi Type Declarationで変数の値を確認してください
Type
TManagerType = (mtBMGR, mtAMGR, mtHOOT);
...
var
ManagerType: TManagerType;
....
procedure DoSomething;
begin
if (ManagerType in TManagerType) then
DoSomething
else
DisplayErrorMessage;
end;
ありがとう、ピーテル。
... :) –