Application.Version

Description

Returns the version number of the application (eg, "6.5.170.QFE1" or "XSI_Pioneer_Beta1.234-4.0"). As of v7.0, the format of the version information is:

{ReleaseNumber}.{BuildNumber}.{UpdateNumber}

...where the chunks represent this information:

- {ReleaseNumber}: can contain alphanumeric characters, as well as decimal points ("."). For released products, this contains "Major.Minor" designation (eg., "6.5"). For pre-release versions, this may be the "CodeNameMileStone" (eg., "XSI_Pioneer_Beta1").

- {BuildNumber}: can also contain alphanumeric characters, but cannot contain decimal points (eg., "234" or "234-4"). - {UpdateNumber}: can also contain alphanumeric characters, but cannot contain decimal points (eg., "1" or "QFE1").

Prior to v7.0, the format of the version information is: "Major.Minor.YYYY.MMDD" (eg., "6.02.2007.0605").

C# Syntax

String Application.Version();

Scripting Syntax

oString = Application.Version();

Return Value

String

Examples

1. JScript Example

/*

	This example shows how to display the build information (for a v7.0 pre-release)

*/

Application.LogMessage( Application.Version() );

// Assuming the Alpha7 milestone of v7.0 release, build 233 (no updates)

// LogMessage would show the line below:

// INFO : Ariane_Alpha7.233.0

2. VBScript Example

'

'	This example shows how to display the build information (prior to v7.0)

'

Application.LogMessage Application.Version

' Assuming Major version 2, Minor version 01, Year 2002, Month 03 and day 028

' LogMessage would show the line below:

' INFO: 2.01.2002.0328