i would like to abort a DownloadFile() command with a button with ID "abort" but don't find the solution with many tries.
My command line is :
Code: Select all
Downloadfile(entry$, {File = f$, Adapter = "hurl"}, p_SetProgress)
Code: Select all
Function p_SetProgress(msg)
maxi$ = msg.Total
moai.Set("prgbar", "max", maxi$)
moai.Set("prgbar", "level", msg.count)
EndFunction
Thanks for your help.