This function is used to retrieve a resource identified by an URL to a local file.
Context
Adelia Web client
Adelia Cloud client
Event Adelia client
Java client
Java server
Parameters
ALPHA(n) |
URL |
RL of the resource to retrieve. |
ALPHA(n) |
DestFile |
Destination file. |
BOOL |
Replace |
Replaces the destination file if it already exists. |
BOOL |
ReturnCode |
Return code. |
Example
ALPHA(256) |
URL |
ALPHA(256) |
DestFile |
BOOL |
ReturnCode |
URL = 'http://www.hardis-group.com/logo.png'
FictDest = 'c:\images\logoHardisGroup.png'
CALL_DLL 'VaToolbx.dll' 'VaToolBxCopyFileFromURL' URL DestFile *FALSE ReturnCode
The resource to which the URL 'http://www.hardis-group.com/logo.png' points is copied to the 'c:\images\logoHardisGroup.png' local file only if this file does not exist.