Share via


DictTable.Dataprcompany Method

Definition

Returns a value that indicates whether the data of the table is saved on a per-company basis, and corresponds to the SaveDataPerCompany property of the table.

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

Returns

true if the data is saved on a per-company basis; otherwise, false, and the data is saved globally for all companies.

Remarks

The following example shows the retrieval of the value that indicates whether the data is saved on a per-company basis.

DictTable dt; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    print (strfmt("The table is saved on a %1 basis.", dt.dataPrCompany() ? "per company" : "global")); 
}

Applies to