In a message regarding Re: HTMLViewer Question dated Fri, 31 Mar 2006
09:42:37 -0500, [EMAIL PROTECTED] said that ...

>      HTMLViewer1.LoadPage EditField1.Text, Nil

> When the program tries to do that, I get a "NilObjectException" error
> message.

That second parameter causes all sorts of problems because it accepts
different things on different platforms.

>From memory, the safest cross-platform answer is to use a
FolderItempointing at a file that exists (*any* file but not a folder)

On a Mac, you can use Nil instead, on Windows you can use a folder (though
that results in the creation of a temporary file) but neither of those
possibilities is cross-platform.

I've never tested this on Linux.

--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to