You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

[ |../../index.htm#lansa/vlwebeng02_0115.htm]
現在地:

14.6.9 xDeviceFileCopy ウィジェト

モバイル・デバイスにファイルをコピーします。
プロパティ
FromFile
コピーされるファイルの完全修飾名です。
ToFile
コピー先のファイルの完全修飾パスです。
メソッド
Copy
ファイルをコピーします

  • 入力引数: なし
  • 出力引数: なし
  • 戻り値: 状態コード

イベント
Completed
ファイルのコピーが終了すると起動されます。

  • パラメータ:

    名前

    タイプ

    説明

    Status

    列挙値

    状態コードを参照してください。

    Message

    文字列

     

    サンプル・コード
    Define_Com Class(#xDeviceFileCopy) Name(#FileCopier) Evtroutine Handling(#COM_OWNER.Initialize)   #Copy.Enabled := false Endroutine Evtroutine Handling(#FileCopier.Initialize)   #Copy.Enabled := true Endroutine Evtroutine Handling(#Copy.Click)   #FileCopier.FromFile := '/recipes/chocolateCake'   #FileCopier.ToFile := '/backup/chocolateCake'   #FileCopier.Copy() Endroutine Evtroutine Handling(#FileCopier.Completed) Status(#returnedStatus) Message(#message)   #Status := #returnedStatus   If (#Status <> OK)     #StatusMessage := #message   Endif Endroutine  
    [ |../../index.htm#lansa/vlwebeng02_0115.htm]
  • No labels