Update cookies preferences
Promotic

Subtype - property of the PmfNumber object

Description:
Specifies whether the object displays/inputs integer or real number.
Syntax:
String Subtype
Values:
int (default) - Integer
float - Real number
Note:
Property access for read and write.
 
It is possible to write into this property only if the PmForm window has not been opened yet.

This property is also functional in Web panels.
Example:
Creates two numeric input items: first one for integer and the second for real number:
JavaScriptSelect and copy to clipboard

var oNumber1 = oForm.CreateItem("number", "Nmb1", "Number of packages", "Min:0;Max:33;");
var oNumber2 = oForm.CreateItem("number", "Nmb2", "The size of one package in cm", "Subtype:float;Min:19.8;Max:120.5;");
var sSubtype1 = oNumber1.Subtype;   // int
var sSubtype2 = oNumber2.Subtype;   // float

History:
Pm9.00.00: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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