Back to product page

DownloadDone event


Fires when component finishes downloading all files.

Syntax

  • Basic
Private Sub object_DownloadDone(ErrorCode, ErrorText)
The DownloadDone(object,ErrorCode,ErrorText) syntax has these parts:
objectA wodAppUpdate object.
ErrorCodeA Long value. Holds error number, if any.
ErrorTextA String value. Holds text description of the error, if any.

Remarks

This event fires when wodAppUpdate has downloaded all neccessary files. At this point it has also created temporary executable file that will perform file replacement.

You can just call Update from here, if you want actual replacement to take place, or you can change configuration files, perform neccessary steps etc.

Typically, you can use code like this in this event:
 
Private Sub Upd1_DownloadDone(ByVal ErrorCode As Long, ByVal ErrorText As String)
   If Not ErrorCode Then
       Upd1.Update
   Else
       MsgBox ErrorText, vbOKOnly, "Error"
   End If
End Sub
 


Platforms

Windows