09-09-2019, 08:34 AM
So it is working, right?
The parameter "Allow" already comes with the check result. Meaning,
Inside OnCheckFormId event, if Allow is False, it means that the received ID is not correct. You can still change it to True and alllow it execute if you want it to. I recommend you to log it, though and block. That's what most users do.
Whenever you do, you must assign a OnCheckFormId to the event handler so it will block execution for that particular form.
procedure TIWForm1.IWAppFormCheckFormId(Sender: TObject; var Allow: Boolean);
begin
if not Allow then
begin
Log('execution was blocked');
end;
end;
The parameter "Allow" already comes with the check result. Meaning,
Inside OnCheckFormId event, if Allow is False, it means that the received ID is not correct. You can still change it to True and alllow it execute if you want it to. I recommend you to log it, though and block. That's what most users do.
Whenever you do, you must assign a OnCheckFormId to the event handler so it will block execution for that particular form.
procedure TIWForm1.IWAppFormCheckFormId(Sender: TObject; var Allow: Boolean);
begin
if not Allow then
begin
Log('execution was blocked');
end;
end;

