Launch file from resources folder?

Why don’t you just try

if s.exists then s.launch

OK - I just tried this, and it still refuses to load the html page into my HTMLViewer:

[code]Dim fi as FolderItem = App.ExecutableFile.Parent.Parent.Child(“Resources”).Child(“myPage.html”)

If fi.Exists Then
Dim s As String = fi.ShellPath
DocumentationHTMLViewer.LoadURL(s)[/code]

Try using LoadPage rather than LoadURL.

From the help documentation:

If f <> Nil Then HTMLViewer1.LoadPage(f) End If

Finally - this works:

[code]Dim fi as FolderItem = App.ExecutableFile.Parent.Parent.Child(“Resources”).Child(“myPage.html”)

If fi.Exists And fi <> Nil Then
DocumentationHTMLViewer.LoadPage(fi)
End If[/code]

Thank You !!

Thought so.

LoadURL is expecting a web address (beginning with http) whereas LoadPage is expecting a file.

Glad you got it sorted.

Simon.

[quote=195184:@Richard Summers]If fi.Exists Then
Dim s As String = fi.ShellPath
DocumentationHTMLViewer.LoadURL(s)[/quote]
Makes sense this doesn’t work
A Shellpath is not an URL … but an URLPath is a URL