Hi,
If I run the following code:
procedure TForm1.WebButton1Click(Sender: TObject);
var
pick:TWebOpenDialog;
s:string;
begin
try
pick:=TWebOpenDialog.Create(Self);
await(String, pick.Perform);
finally
pick.Free;
WriteLn('this should execute');
end;
I would expect the finally block to trigger after the user has selected a file(s) or closed the window or pressed cancel on the dialog.
However, it runs only if a file(s) has been selected.
Is this expected behaviour or an error? If it is expected, how does one go about executing code after the .perform() in the event the user closes the window?
Thanks