How to use WebOpenDialog

Thanks for pointing to the Blox demo.

Unfortunately, that particular example doesn't work for my situation. In the Blox demo, they're calling:

TMSFNCBloxControl1.LoadFromFile((Sender as TWebOpenDialog).Files[0].FileObject);

And in that particular case, the LoadFromFile procedure is expecting a TJSHTMLFile parameter.

When I try to adapt that code to my own program using:

WebMemo1.Lines.LoadFromFile((Sender as TWebOpenDialog).Files[0].FileObject);

I get a compiler error:

[Error] WebOpenDialogTestUnit.pas(131): Incompatible type arg no. 1: Got "TJSHTMLFile", expected "String"

This whole thing is incredibly frustrating. I'm trying to do something which (I believe) should be very simple, and yet it's proving to be impossible.

I simply want to use a WebOpenDialog to select a text file and then display the contents of the text file in a memo.

If this is not possible, I wish somebody from TMS would just reply and say "Sorry, that's not possible."

But so far my calls for help are being ignored. I originally tried posting this question in a different thread ten days ago, and received no responses. Now I tried this thread, and still getting no responses.