Previous Topic: SetComment - Copy the Text to UAM Job Comment FieldNext Topic: SetLocalPath - Copy the String to the UAM Job Local Path Field


SetInvValue - Change the Attribute Value

Valid on UNIX and Windows

The SetInvValue function changes the value of a specific attribute in an Inv file.

Function format:

SetInvValue(Filename as string, GroupName as string, GroupID as string, AttrName as string, AttrID as string, Value as string) as string
Filename

Specifies the filename of the Inv file.

GroupName

Specifies the name of the group in which the attribute is located.

GroupID

Specifies the ID of the group in which the attribute is located.

AttrName

Specifies the name of the attribute to be set.

AttrID

Specifies the ID of the attribute to be set.

Value

Specifies the value to be set to the attribute in the Inv file.

For Inv structured files, the GroupName specifies the complete group name and GroupID the related index number including type; the AttrName is the name of the attribute and AttrID specifies the related index including type and display type.

If the attribute specified is found in the Inv file, its value is changed and SetInvValue returns TRUE; otherwise, returns FALSE.

Example:

SetInvValue("sample.inc","$GeneralInventory$|$Drive$,"000A02","name","00010500","C:")