In the documentation for WebFile, there is an example for downloading a file when a WebButton is clicked. However, in the example, there is a comment that says “// MyFile is a property on the App object”. However, it doesn’t specify Property Type it’s suppose to be defined as. And, I’m just novice enough to not be able to guess what it should be.
Any help would be appreciated!
Dim f As FolderItem = GetFolderItem("MyFile.txt")
If f <> Nil And f.Exists Then
App.MyFile = WebFile.Open(f) // MyFile is a property on the App object
App.MyFile.ForceDownload = True
End If