How to use WebOpenDialog

Instead of LoadFromFile, use:

TWebOpenDialog(Sender).Files[0]
  .GetFileAsText(
    procedure (txt : string)
      begin 
        webmemo1.Lines.Text := txt; 
      end
  );
1 Like