Media_Version ( versionFormat )
Media_Version gets a string which may be either empty (“”) or either of words “short”, “long”, “build”, or “platform” to specify the output format. For everything else the result is the same as if “short” were passed.
Parameter | Description |
---|---|
versionFormat | “”, “short”, “long”, “number”, “build”, or “platform”. |
Examples
To get just the numerical version number (19.0.0):
Set Field [ MyTable::Version ;
Media_Version ( “short” ) ]
To get the plug-in name and version number together in the response (MediaManager 19.0.0):
Set Field [ MyTable::Version ;
Media_Version ( “long” ) ]
To get the plug-in version number in the format aabbccdd (eg. version 19.0.1 would return 19000100):
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” ) ]
To get a MediaManager build number – pass “build” as function’s argument:
Set Field [ MyTable::Version ;
Media_Version ( “build” ) ]