Previous Document Next Document
Application.VersionBuild

Property VersionBuild As Long

Member of Application

The VersionBuild property returns version information about CorelDRAW. The VersionBuild property returns only the build number of the current version. The VersionBuild property returns the second part of the Version number (to the right of the decimal point). For example, if the current version is 11.396, the VersionBuild value is 396.

The VersionBuild property returns a read-only value.

The following code example displays the build number of the current CorelDRAW application in a message box.

Sub BuildVersion() 
 MsgBox "You are using CorelDRAW build " & VersionBuild 
End Sub 

The following code example detects earlier versions of CorelDRAW. Version properties were introduced in CorelDRAW 9 Office Edition.

Sub Main() 
 Dim v&, b& 
 GetDrawVersion v, b 
 MsgBox v & "." & b 
End Sub 
Sub GetDrawVersion(v As Long, b As Long) 
 On Error Resume Next 
 Err.Clear 
 v = CorelDRAW.Application.VersionMajor 
 If Err.Number <> 0 Then 
  v = 9 
  b = 439 
 Else 
  b = CorelDRAW.Application.VersionBuild 
 End If 
 On Error GoTo 0 
 MsgBox "You are using CorelDRAW " & v & "." & b 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.