QPx_GetQuickTimeVersion
QPx_GetQuickTimeVersion(versionString):error | |||
---|---|---|---|
![]() |
versionString | Text | QuickTime version |
![]() |
error | Longint | Error result |
Get the version of QuickTime
Parameter versionString receives the version of QuickTime running on your machine. The encoded string value that expresses the QuickTime version number is constructed as follows:
Characters | Description |
---|---|
1 | F = final, B = beta, A = alpha, D = development |
2-3-4 | Internal number |
5-6 | Version number |
7 | Update number |
8 | Revision number |
For example, the string "F0000403" stands for the Final release of version 4.0.3.
If QuickTime is not installed, an error code is returned and versionString is set to empty.
Example
// Check for QT 7 or later C_LONGINT($error) C_TEXT($qtVersion) C_BOOLEAN($qtVersionOK) $qtVersionOK:=False $error:=QPx_GetQuickTimeVersion ($qtVersion) If ($error=qpx_noErr) $qtVersionOK:=(Num(Substring(gQTVersion;5))>=Num("0700")) Else // Handle the error End if