Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
Function
The function SetItemNewValue sets a new value for one value item of an object of the Structure type.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
APIRET SetItemNewValue(HOBJ Id, unsigned int row, unsigned int col, const UniValPtr value) |
Parameters
The parameter Id defines the identifier of changed object and value defines a new value and status of the object value item. The parameters row and col defines the item row and column index (from 1 …).
Return code
Code | Description |
---|---|
API_OK | Value was sent to the D2000 Server. |
API_UnknownId | Object Id is unknown for the interface D2000 ObjApi. The interface D2000 ObjApi includes an internal list of used objects, which is filled at callings the functions NewValueProc, NewDefProc, OpenObject, GetObjectValue and GetObjectId. In this case, the object ID could not be get in the correct way via ObjAPI. |
API_ValTypeError | The type of new object value is not the same as the value type in the system. A value change can cause unexpected problems during the runtime of the D2000 Server. |
API_ParamError | Invalid parameters. |