Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetVersion |
Function GetVersion(Option As Long) As Long
Member of CorelScriptTools
The GetVersion method returns the system or Corel SCRIPT version numbers.
The GetVersion method returns one of the following values:
• |
Option 30 = Windows platform, a single-digit number indicating the Windows
platform that Corel SCRIPT is being used with (0 for Win32s [Windows 3.11], 1
for Windows 95, and 2 forWindows NT)
|
• |
Option 31 = Windows major version number. For example, if youre running
Windows 95 and your Windows version number is 4.00.950, the major version
number is 4. The same applies to Windows NT.
|
• |
Option 32 = Windows minor version number. For example, if youre running
Windows 95 and your Windows version number is 4.00.950, the minor version
number is 0.
|
• |
Option 33 = Windows build number. For example, if youre running Windows 95
and your Windows version number is 4.00.950, the minor version number is 950.
|
In the following code example, the first line passes the Corel SCRIPT version number to CS_version. A message box is then used to display the first two digits in CS_version by using the LEFT function. Next, a message box is used to display the first two digits in CS_version by using the RIGHT function.
CS_version = GETVERSION(10) |
MESSAGE "Corel SCRIPT major version number " & LEFT (CS_version, 2) |
MESSAGE "Corel SCRIPT minor version number " & RIGHT (CS_version, 2) |
Copyright 2013 Corel Corporation. All rights reserved.