📚 SAP Business One SDK Help

Remove Method
See Also 

Description

Deletes the current record.

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

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

See Also