ProcedureVersion
ProcedureVersion (macroOrFunctionNameStr [, procedureWinTitleStr])
The ProcedureVersion function returns the version number as specified by the first #pragma version=versionNum in the procedure file containing the named macro, function. Alternatively it can returh the version number of a specified procedure window.
The ProcedureVersion function was added in Igor Pro 9.01.
Parameters
macroOrFunctionNameStr identifies the macro or function. It may be just the name of a global (nonstatic) procedure, or it may include a module name, such as "MyModule#MyFunction" to specify the static function MyFunction in a procedure window that contains a #pragma ModuleName=MyModule statement.
If macroOrFunctionNameStr is "" and procedureWinTitleStr is not specified then the value of the first #pragma version statement in the procedure window containing the currently running macro or function is returned.
If macroOrFunctionNameStr is "" and procedureWinTitleStr is specified then the value of the first #pragma version statement in that procedure window is returned.
Details
The return value is rounded to a multiple of 0.001.
The returned value is 0 if the #pragma version statement is absent or the procedure window is "invisible" because the function is an independent module but SetIgorOption IndependentModule=0.
Example
#pragma version=1.2345 // 1 more digit than recommended
...
Function Test()
Variable version = ProcedureVersion("") // Version of procedure file containing test
Print version // 1.234
End
See Also
ProcedureText, FunctionList, MacroList
Procedure File Version Information, ProcedureVersion, The ModuleName Pragma
SetIgorOption IndependentModuleDev=1, Invisible Procedure Files Using Independent Modules