Promotic

IsValid - method of the Pm object

Description:
Test the validity of the value.
Syntax:
Boolean IsValid(Variant Value)
Parameters:
Value(Variant) The value to be tested for validity.
Return value:
true - on success. The value je valid.
false - on error. The value is INVALID. For example the value je:
- for JavaScript: null, undefined.
- for VBScript: Empty, Nothing.
- the number has the value NaN or Infinite
Note:
This method is suitable for testing the method results (for example Pm.ToNumber).

This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var bIsValid = Pm.IsValid(3.14);

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

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- IsValid
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.