ああコンフィグレーション
サーバ

ファイルダウンロード Xojo開発

備忘録

初めてXojoを触ってダウンロード部分を書いてみたが、動作しない。今は日本語バージョンが無いので、英文を参考にしていたが、書いてある意味が通じなかっただけ。

…略
dim myFile as webFile
myFile = new FolderItem(“aaaa.txt”)
myFile = WebFile.open(f)
ShowURL( myFile .URL)
これは動作しない。

// myFile を作成中のアプリケーションのプロパティに作った上で
myFile = WebFile.open(f)
ShowURL( myFile .URL)
これは動作する。ダウンロードできた。

説明書には // “MyFile As WebFile” is a property on the App object
ちゃんと書かれているんだけど、わからなかった。それで、WEB検索していたらXOJOの関係サイトで
// mTextFile is a property of the web page
// so that it does not go out of scope
// while the file is downloading.

という記述を発見。これは頭に入ってきた。「なんだ~。」