Initializing help system before first use

insightgetversion

Purpose
Query the version of the Insight server
Synopsis
function insightgetversion:string
Return value
The version of the Insight server running the scenario, for example "5.5.0"
Example
if startswith(insightgetversion, "5.") then
  writeln('Detected Insight 5')
else
  writeln('This app cannot be used on Insight '+insightgetversion)
  exit(1)
end-if
Ensure app will only run on Insight 5
Further information
1. The returned value will be the version of Insight Server, not the version of the mminsight module. To check the currently running version of mminsight, use versionstr('mminsight').
2. If called from a scenario running in Insight 4, this function will always return "4".
3. When test mode has been activated by setting the insight_testmode parameter, this function will return the value set by a call to the insightsetversion procedure.
4. If called outside an Insight scenario and test mode, this function will always return an empty string.
Related topics

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.