Media_Version ( versionFormat )
Media_Version gets a string which may be either empty (“”) or either of words “short”, “long”, or “platform” to specify the output format. If it gets something that makes no sense, the result is empty.
Parameter | Description |
---|---|
versionFormat | “”, “short”, “long”, “number” or “platform”. |
Examples
To get just the numerical version number (17.0.1):
Set Field [ MyTable::Version ;
Media_Version ( “short” ) ]
To get the plug-in name and version number together in the response (MediaManager 17.0.1):
Set Field [ MyTable::Version ;
Media_Version ( “long” ) ]
To get the plug-in version number in the format aabbccdd (eg. version 17.0.1 would return 17000100):
Set Field [ MyTable::Version ;
Media_Version ( “number” ) ]
To get the platform name – as opposed to the number code returned by Get (SystemPlatform) – use the “platform” parameter (“Mac OS X”/”Windows”):
Set Field [ MyTable::Version ;
Media_Version ( “platform” ) ]