ISolveInterface.UpdateValues (method)

Update values for items that match the expression.
Syntax: SCODE = object.UpdateValues ( itemId, attributeList )
itemId As String - The item id of the items to be searched.
attributeList As String - The attributes to be updated.
Description: browser.UpdateValues Updates the database to set attributes to the specified values. If successful return S_OK. If the query fails then a value of S_FALSE is returned. If the array is empty then no values were returned.


Dim i As Variant
Dim errorCode As Long
Dim errorString As String
i = browser.UpdateValues("ITEM_1", "Order Card.C='abc';Order Card.Master Blend Date='1/1/2000'")
If CInt(i) <> 0 Then
  i = browser.LastError(errorCode, errorString)
  MsgBox "Error code = " + CStr(errorCode) + ", Error string = " + errorString
End If