Jump to content
Sign in to follow this  
andygo

how to "cancel" a inetget ?

Recommended Posts

andygo

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

Share this post


Link to post
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
Sign in to follow this  

×