Previous Topic: GetMIFValue - Retrieve the Value of an AttributeNext Topic: SetInvValue - Change the Attribute Value


SetComment - Copy the Text to UAM Job Comment Field

Valid on UNIX and Windows

Copies the string specified by the parameter Text to the Asset Management Job Comment field.

This MIF and Inv file function has the format:

SetComment(Text as string) as integer
text

Specifies the comment text.

On successful completion, the function returns TRUE, otherwise it returns FALSE.

Example

This script shows the use of the SetStatus function.

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