Promotic

Min - property of the PmfNumber object

Description:
Minimum value.
Syntax:
Double Min
Note:
Property access for read and write.
 
When value is being entered into the form, the system tests the value and compares it to this minimum. The value can not be lower.

If the property is not set, then returns the value: null for JavaScript or Empty for VBScript. Assigning such value brings the property to the state "not set".

This property is also functional in Web panels.
See also:
- PmfNumber.Max (property)
- PmfNumber.Value (property)
Example1:
JavaScriptSelect and copy to clipboard

// Setting the propert when the object is created
// If integer:
var oNumber = oForm.CreateItem("number", "Id1", "Title", "Min:-6;Max:3;");
// If real number:
var oNumber = oForm.CreateItem("number", "Id1", "Title", "Subtype:float;Min:-6.25;Max:3.14;");

var nValue = oNumber.Min;   // Reading from the property
oNumber.Min = -6;   // Writing into the property

History:
Pm8.03.08: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.