Checks if the argument has a valid value.
Visual Basic |
---|
Public Function IsValid( _ ByVal value_or_object As Variant _ ) As Boolean |
- value_or_object
- Input data of any type represented as Variant
True if data is valid, False otherwise.
Currently the method checks Long, String, and Double values for validity.
Starting from v.3.0 this method also checks for validity the objects returned by CQG API. See Invalid Objects for details.
The validity of the instrument property checking | ![]() |
---|---|
Dim TickValue As String TickValue = IIf(CEL.IsValid(instrument.TickValue), CStr(instrument.TickValue), "N/A") |