Set Attribute with Attribute (Ext. Attr.)

Description

Set Attribute with Attribute (Ext. Attr.) updates a standard or extended attribute value of one item with the value of a standard or extended attribute belonging to another item.

Note: To set an extended attribute value to the value of a standard attribute, or vice-versa, use an intermediate RCO variable.

Parameters

This function block has the following parameters:

Parameter

Description

Destination Region ID

ID of Region where item is located.

Destination Location

Location of the item in the Region.

Destination Item Class

Class of the item.

Destination Attribute ID

Name of the standard or extended attribute whose value is to be set.

Source Region ID

ID of Region where item is located.

Region Location

Location of the item in the Region.

Source Item Class

Class of the item.

Source Attribute ID

Name of the standard or extended attribute whose value is to be used to set the Destination Attribute ID.

Attribute Start Byte

Specify the start character if setting a sub-string of the source Attribute.

Attribute Length

Specify the number of characters to set starting from Source Attribute Start Byte.

Pseudo Code

Read source extended attribute value

If extended attribute is found

  Read destination extended attribute

  If extended attribute is found

    Update destination extended attribute value with the source extended attribute value.

  End if

End if

Notes

All the function blocks that deal with extended attributes can be provided INTERNALHOLD text to read the value of an internal hold.

Values are:

0

Internal Hold is not set.

1

Internal Hold is set.

However, you cannot use any of the extended attribute function blocks to modify system attributes.

System attributes cannot be modified.

More information

Set Extended Attribute by Item.

Set RCO Variable with Attribute.

Set Attribute with Value.

Set Extended Attribute with Value.

Set Extended Attribute with RCO Variable.

Set Extended Attribute with Point.

Set Extended Attribute by Item.

Set Item Extended Attribute.

Core function block list.