WriteFileTimeout
This command is used to set the timeout period when writing to a file that is large.
Group:Device Extensions
Syntax: [bOK =] Device.WriteFileTimeout(sFileName)
bOK (Boolean) Optional – the success or failure of the command.
sFileName (String) specifies where on the mobile device the file should be found
vData (Variant) contains the data read from the file. String or binary data is allowed.
Example:>
'Create a large (at least 50 MB) test file on your server. For example: "c:\temp\large-test-file"
' Add a form that runs code such as the following:
' Set long timeout
Device.WriteFileTimeout = 60
' Copy file to the device.
App.Balloon("Sending (long timeout)...", -1)
Dim szBuf() As Byte
ReadBinaryFile("c:\\temp\\large-test-file", szBuf)
Device.WriteFile("%PUBLIC%/my-dir/large-test-file", szBuf, False)
' Check for the existence of the file
If Device.FileExists("%PUBLIC%/my-dir/large-test-file") Then
App.MsgBox("Test file exists")
Else
App.MsgBox("Test file is missing")
End If
Supported Version: 5.2.4.8