Jump to content

how to "cancel" a inetget ?


andygo
 Share

Recommended Posts

hello, this is part of my code:

$download = InetGetSize ( URL, 1 )
$update = InetGet ( URL, Localpath, 1, 1)
                    $toshow=TimerInit()
                    local $sofar
                    do
                        if TimerDiff($toshow)>100 Then
                            $sofar=InetGetInfo($update, 0)
                            ProgressSet(int(($sofar/$download)*100), "", int($sofar/1024) & " kb von " & int($download/1024) & " kb")
                            $toshow=TimerInit()
                        endif
                    until InetGetInfo($update, 2)

how can i cancel this inetget while the do / until loop is active?

thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...