DictTable.Occenabled Method

Definition

Indicates whether the optimistic concurrency mode has been enabled for a table.

public:
 virtual bool Occenabled();
public virtual bool Occenabled ();
abstract member Occenabled : unit -> bool
override this.Occenabled : unit -> bool
Public Overridable Function Occenabled () As Boolean

Returns

true if the optimistic concurrency mode is enabled; otherwise, false.

Remarks

When this mode is enabled, data is not locked from future modification when it is fetched from the database. Data is locked only when the actual update is performed.

The following example shows a call to the occEnabled method.

static public void Main(Args _args) 
{ 
    DictTable dt; 
    boolean enabled; 
    dt = new DictTable(tablenum(CustTable)); 
    enabled = dt.occEnabled(); 
}

Applies to