Valid on Windows and UNIX
The CcnfGetParameterInt function reads the common configuration parameter integer value.
This function has the following format:
CcnfGetParameterInt(Parametername as string, Value as integer) as Boolean
Defines the name of a common configuration parameter including its absolute path (for example: "itrm/rc/protocols/tcp/connectiontimeout").
Defines the integer value of Parametername.
The return value of the function is a Boolean. If the function is successful, it returns TRUE and value contains the value of Parametername. If the function is not successful, an error is reported in the log file.
Example: CcnfGetParameterInt function
This example uses a comstore parameter that is described in the chapter Mapping Between asm.cnf and comstore.xml in the Implementation Guide.
Dim pNum as integer
if CcnfGetParameterInt("itrm/usd/shared/localtimedeviation ", pNum) then
Print("itrm/usd/shared/localtimedeviation = """ + val(pNum) + """" )
else
Print("CcnfGetParameterInt failed")
endif
|
Copyright © 2013 CA.
All rights reserved.
|
|