Thread Rating:
  • 393 Vote(s) - 2.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
独自アプレットでのファイルダウンロードダイアログについて
05-08-2012, 02:25 PM,
#4
RE: 独自アプレットでのファイルダウンロードダイアログについて
ありがとうございます。choose-fileを使って自己解決しました。
以下のようにするとできそうです。

Code:
{try
    def dlString:String = "http://curl.com/test.zip"
    let in-url:Url = {abs-url dlString}
    let out-file:#Url =
        {choose-file
            default-location={url {get-host-working-directory-url} & "/" & in-url.filename},
            style=FileDialogStyle.save-as,
            title="名前をつけて保存"
        }
    {if-non-null out-file then
        {copy in-url, {non-null out-file}, error-if-exists? = false, recurse? = false}
    }
catch e:Exception do
    {popup-message
        {VBox
            halign = "center",
            "ファイルのダウンロードに失敗しました。",
            e.message
        }
    }
}


Messages In This Thread
RE: 独自アプレットでのファイルダウンロードダイアログについて - by usami - 05-08-2012, 02:25 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('489')