Util.DownloadToVar |
Top Previous Next |
Syntax function Util.DownloadToVar(URL: string; TargetVar: variant; Options: variant): boolean
Alternative Names
Description Downloads a file from the given URL into a variable TargetVar. You can then save the value in the variable to a file.
If the function success, it returns TRUE, otherwise it returns FALSE.
See Also
Example execute UDSBlock as declare variable res boolean; begin res = Util.DownloadToFile('https://www.upscene.com/files/ADG4ProTrial.exe', 'c:\temp\ADG4ProTrial.exe', 0);
if (res) then GUI.ShowMessage('Download done!');
filedata = null; res = Util.DownloadToVar('https://www.upscene.com/files/HopperTrialFb2.exe', filedata, 0); if (res) then Files.SaveFile('c:\temp\HopperTrialFb2.exe', filedata, 0); end |