Skip to content

Can_Delete - BaseData_Set

Returns whether delete is an allowed operation in the DDO object

Type: Property
Access: Read-Only
Data Type: Boolean
Parameters: None

Syntax

Property Boolean Can_Delete
Access Type Syntax
Read Access: Get Can_Delete to BooleanVariable

Description

Returns whether delete is an allowed operation in the DDO object. The property respects the Read_Only_State and No_Delete_State of this object.

Returns True if all of the following conditions are True: Main_File >0This object is in use (In_Use_State is True)This object is not read-only (saves/deletes are permitted)This object is not no-delete (deletes are permitted) The conditions checked by Can_Delete are used to guard the Request_Delete message in data entry objects (DEOs), so that if Can_Delete returns False, Request_Delete takes no action. This is consistent with the behavior of Request_Save.