Promotic

SetNullValue - method of the PmaDatabase object

Description:
It is used for setting the value that will be returned by the ReadFieldValue method if the database table cell contains the Null value.
Syntax:
Boolean SetNullValue(Variant vValue, Long nType)
Parameters:
vValue(Variant) The value that has to be returned by the ReadFieldValue method if the Null value is returned by this property
nType(Long) Specifies columns, the compensatory values are valid for:
1 - for integer numbers columns (of the Integer, Byte and Long type)
2 - for columns of the Boolean type
3 - for columns of the Text type
4 - for columns of the Date type
5 - for real numbers columns (of the Single, Double type)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var bNull = oDb.SetNullValue(-1, 5);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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