On Mar 31, 2006 3:43 PM, [EMAIL PROTECTED] wrote:
> Brad,
>
> I must still be doing it wrong (probably because I don't
> really know what
> I'm doing), because it's not working. Here's what I tried:
>
> HTMLViewer1.LoadPage EditField1.Text, Nil
>
> When the program tries to do that, I get a
> "NilObjectException" error message.
>
> What am I doing wrong?
>
> Barry Traver
If you are on Windows, FolderItem CANNOT be Nil - you must provide a
valid folder or it will give you a NilObjectException error. Example:
Dim s As String
Dim f As FolderItem
f = GetFolderItem("") // where app is running
s = "<html><body><h1>Hello World</h1><br>"
s = s + "<a href='http://www.google.com'>a link to google</a>"
s = s + "</body></html>"
HTMLViewer1.LoadPage s,f
There's something you should know about using this LoadPage method.
Everytime you use it, RB will create a new temporary HTML file on your
disk on the folder you specified - so, if you don't want it to create
on the folder where the application is running, provide for example
the temporary folder of the OS or any other folder. The good news is
that RB deletes also these temporary files once the application quits.
Carlos
[RB2005r4 Win2K]
_______________________________________________
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>