UNIX および Windows で有効です。
パラメータ Text で指定された文字列を Asset Management の[ジョブ コメント]フィールドにコピーします。
この MIF および Inv ファイル関数の形式は、以下のとおりです。
SetComment(Text as string) as integer
コメント テキストを指定します。
この関数が正常に完了すると、TRUE が返されます。それ以外の場合は、FALSE が返されます。
例: SetComment 関数
このスクリプトは、SetStatus 関数の使用法を示します。
if MsgBox("Should this job return an error?",MB_YESNO)=IDYES then
SetStatus(NC_ERROR)
else
SetStatus(NC_OK)
Print ("The user selected OK when prompted...")
end if
|
Copyright © 2013 CA.
All rights reserved.
|
|