Checking for version


Your Ad Here


Topsolid online Help Index

This example shows how to check for TopSolid version at the beginning of a program.

 

 

Dim TopApp As TopSolid.Application

 

...

 

Set TopApp = New TopSolid.Application

 

' cannot run before v6.5.212

 

If TopApp.Version < 605212 Then

 

MsgBox "This program cannot run on a TopSolid prior to v6.5.212", vbCritical

End

End If

 

' cannot run after v6.5

 

If TopApp.Version >= 606000 Then

 

MsgBox "This program cannot run on a TopSolid posterior to v6.5", vbCritical

End

End If

 

...

 

Topsolid online Help Index

Your Ad Here