DBWRequiredDBWorksBuild

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem >

DBWRequiredDBWorksBuild

Description

Check if the installed DBWorks build string representation equals the parameter.

Syntax

Function DBWRequiredDBWorksBuild(DBWbuild)

Parameters

DBWbuild

string representing the build compared to the current DBWorks build

Return Values

TRUE

if the DBWorks currently installed build equals the passed parameter one

FALSE

otherwise

Remarks

The parameter passed must be of the format yyyymmdd (i.e. year, month, day)

See also

DBWGetDBWorksBuild function

Example

Sub Main()
 last_build = "20011117"
 if DBWRequiredDBWorksBuild(last_build) then
  msgbox "No upgrade needed: you've installed last available build"
 else
  msgbox "You need to update your DBWorks build: a recent one has been released"
 end if
end sub