Previous Topic: Common Configuration FunctionsNext Topic: CcnfGetParameterStr - Read Common Configuration Parameter String Value


CcnfGetParameterInt - Read Common Configuration Parameter Integer Value

Valid on Windows and UNIX

The CcnfGetParameterInt function reads the common configuration parameter integer value.

Function format:

CcnfGetParameterInt(Parametername as string, Value as integer) as Boolean
Parametername

Defines the name of a common configuration parameter including its absolute path (for example: "itrm/rc/protocols/tcp/connectiontimeout").

Value

Defines the integer value of Parametername.

The return value of the function is 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:

This example uses a comstore parameter:

Dim pNum as integer
if CcnfGetParameterInt("itrm/usd/shared/localtimedeviation ", pNum) then
Print("itrm/usd/shared/localtimedeviation = """ + val(pNum) + """" )
else
Print("CcnfGetParameterInt failed")
endif