Syntax
PrtItem.SetAttr attrib$, value$
Description
Sets an Attribute to a value for the Item. If the Attribute exists for the Item, it is overwritten. If the Attribute does not exist for the Item a new Attribute is created. PRT will be updated with the modified Attribute on the next Modify method.
Example
Dim Region as new PRTREGION
Region.Id = SRC$
Region.GetItemList
'Set timestamp attributes for the head item in a region, and
' then move the item to another region.
DSUF$ = "_DATE"
TSUF$ = "_TIME"
Region.Item(0).Setattr SRC$ & DSUF$, DATE$
Region.Item(0).Setattr SRC$ & TSUF$, TIME$
Region.Item(0).Modify
Region.Item(0).Moveto DESTREGION$, RegionLOC%, 0
PRT Object Model member list. |