Public Function CSngIgnErr( _ ByVal vValue As Variant _ ) As Long
CSngIgnErr(34) = 34! CSngIgnErr(0) = 0! CSngIgnErr(-34) = -34! CSngIgnErr(34.3) = 34.3! CSngIgnErr("1") = 1! CSngIgnErr("0") = 0! CSngIgnErr(#12/31/1899#) = 1! CSngIgnErr("Word") = 0!See also:
CanBeSingle Function CDblIgnErr Function CCurIgnErr Function CSng Function (Visual Basic)vValue: The value which will be converted to a Single and returned (if conversion is possible). Conversion is not possible if vValue is Null, an Error, an Object, a non-numeric String, or a numeric value out of the range allowed for this data type.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.