📚 SAP Business One SDK Help

Remove Method
See Also 

Description

Removes a specified field from the table.

Deletes a record from the object table.

Syntax

Visual Basic
Public Function Remove() As Long

Return Type

Returns a result value that indicates success or failure. If the method succeeds, it returns 0. Otherwise, it returns an error code.

You can retrieve the last error code and its description using the method GetLastError.

Remarks

Warning: when removing a field, all it's content is lost.


You must use the GetByKey method to retrieve a valid object.

Example

See Also