Back to product page
- Introduction
- Overview
- License agreement
- Configuration file creation
- Getting Started
- Objects
- Enumerations
- wodAppUpdate
- Methods
- Properties
- AutoRestart
- Blocking
- CmdAfter
- CmdBefore
- CmdLine
- DebugFile
- DialogNoteText
- DialogNoteURL
- DialogText
- Files
- ForceRestart
- GlobalTerminate
- Login
- Messages
- Notification
- Password
- PrevExist
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- ReplaceRule
- RequireAdmin
- ServiceIsRunning
- Signature
- State
- StateText
- Timeout
- UpdaterName
- UpdaterTimeout
- URL
- URLHandler
- UserIsAdmin
- Version
- Visible
- WinVersion
- Events
- Notifications
- UpdFile
- UpdFiles
- UpdMessage
- UpdMessages
- UpdProcess
- UpdProcesses
- How to get support?
- Technical information
- Fast notifications interface
- Error list
CheckDone method
Called when component has finished checking for new updates.
Type
NoneSyntax
- Basic
object.CheckDone Owner, NewFiles, ErrorCode, ErrorText
The CheckDone(object,Owner,NewFiles,ErrorCode,ErrorText) syntax has these parts:
The CheckDone(object,Owner,NewFiles,ErrorCode,ErrorText) syntax has these parts:
object | An expression evaluating to an object of type IwodAppUpdateNotify. |
Owner | Required. A wodAppUpdate object. Reference to wodAppUpdateCom instance that called this notification method. |
NewFiles | A Long value. Total number of new files that should be replaced. |
ErrorCode | ErrorCode |
ErrorText | Required. A String value. Holds text description of the error, if any. |
Remarks
NOTE: This method is called only if you implemented IwodAppUpdateNotify interface in your application, and wodAppUp.Notification property has received reference to instance of your implementation. This notification method is called when Check method completes. At this point Files and Messages collections are filled with information. You can now evaluate and change received information, or you can just proceed to the next step and call Download method. Typically, and the simplest way, is for your code to look like this:Private Sub Private Sub IwodAppUpdateNotify_CheckDone(ByVal Owner As wodAppUpdateCOMLib.IwodAppUpdateCom, ByVal ErrorCode As Long, ByVal ErrorText As String)
If Not ErrorCode Then
Upd1.Download
Else
MsgBox ErrorText, vbOKOnly, "Error"
End If
End Sub
NewFiles argument tells you if there are new files that need to be replaced at all. You could add one more if..then structure in the code and show message box "no new files found" when NewFiles = 0.