Updates List of values in a Value List.
Return Type
A psRETURN_VALUES value.
Syntax
object.UpdateValues(sName, vaValues)
object
is an expression evaluating to an object of type psPortfoliosvalueList.
Arguments
Argument | Data Type | Description |
---|---|---|
sName | String | The Value List to update is identified by this. |
vaValues | Variant | List of objects of type psPortfoliosValueListValueInfo. Each object in the list represents a value in the Value List. Some values will get updated (possibly renamed or assigned a new weight), while others will be added. Values that exist in the value list but not specifed in vaValues will be deleted. The relevant fields in each psPortfoliosValueListValueInfo object are:
Note: The data type of the Weight element is Float.
|
Return Value
For the Return Error Code refer to Error Handling for APIs of type A.
Code Examples in Different Programming Languages
Set the 'Domains' value list to show only Items(1; 1.7), Portfolios, Gizmos(3;) and Wizards (; 3.14). Gizmos(3) will replace Applications(3).