Windows および Unix で有効です。
CcnfGetParameterStr 関数では、共通設定パラメータ文字列値が読み取られます。
関数の形式
CcnfGetParameterStr(Parametername as string, Value as string) as boolean
Parametername
絶対パスを含む共通設定パラメータの名前("itrm/rc/protocols/encrypt/dll" など)
Value
Parametername の文字列値。
この関数の戻り値はブール値です。 この関数が正常に実行されると TRUE が返され、Value には Parametername の値が組み込まれます。 この関数の実行が失敗すると、ログ ファイルにエラーが記録されます。
例:
この例では comstore パラメータを使用します。
Dim pText as string
if CcnfGetParameterStr("itrm/usd/shared/nos", pText) then
Print("itrm/usd/shared/nos = """ + pText + """" )
else
Print("CcnfGetParameterStr failed")
endif
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|