Show Contents List
You are here:
14.6.9 xDeviceFileCopy Widget
Copy file on mobile device.
Properties
FromFile
Fully qualified name of the file to be copied.
ToFile
Fully qualified path of the file to be copied to.
Methods
Copy
Copy the file
- Input Arguments: None.
- Output Argument: None.
- Return Value: Status code
Events
Completed
Triggered when file copying is finished.
- Parameters:
Name |
Type |
Description |
Status |
Enum |
See Status Code |
Message |
String |
|
|
Code Examples
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
Show Contents List