SystemConstant.SelectById(ID, Query).co_id
Get the constant ID value.
Applies To
Description
Get the constant ID value. You cannot set the co_id value. This is a Deacom primary key and can only be set by the SQL server.
Properties and Methods
None
Available
The .co_id property is available in:
- 15.03.090
- 15.04.059
- 15.05.034
- 16.00.039
- 16.01.011
- 16.02.004
- 16.03.001
- All newer builds
Type
Int32
Syntax
SystemConstant.SelectById(ID, Query).co_id;
Parameters
None
Example
//--Get the system constant
let loConstant = SystemConstant.SelectByName('My_Constant_Name', Query);
//--get the co_id
let lnID = loConstant.co_id;
Event.Form.MessageBox(`The Id for the system constant 'My_Constant_Name' is: ${lnID}`);
/*
Expected Prompt will read:
The Id for the system constant 'My_Constant_Name' is: 5
*/