urltaskcancel

The urltaskcancel statement aborts a download initiated with the urltask( function.


Parameters

No parameters.


Description

This statement aborts a download initiated with the urltask( function. Suppose you have created a task to download a big PDF file.

fileglobal taskid,urldata
taskid = urltask("http://www.somesite.com/bigfatlong.pdf",
    "file","~/User/Documents/bigfatlong.pdf")

This file may take a minute or two to download. To cancel this download before it finishes, use this procedure.

urltaskcancel taskid

Note: If the task has already completed, this statement will result in an error. You can trap this with if error if you just want to punt (see Error Handling).


See Also


History

VersionStatusNotes
10.0NewNew in this version.