SystemConstant.SelectById(ID, Query).co_value
Gets and sets the co_value field in a system constant.
Applies To
Description
Gets and sets the co_value field in a system constant.
Properties and Methods
None
Available
The .co_value 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
Decimal
Syntax
SystemConstant.SelectById(ID, Query).co_value;
Parameters
None
Example
//--get the system constant
let loConstant = SystemConstant.SelectByName('My_Constant_Name', Query);
//--set the co_value field
loConstant.co_value = 22.34;
//--save the constant
loConstant.Save();
//--read the co_value field
let lnValue = loConstant.co_value;
Event.Form.MessageBox(`The value of the constant is: ${lnValue}`);
/*
Expected prompt response is:
The value of the constant is: 22.34
*/