Function Fix Ups Class

FixUpVariantToLongMandFn

"Fix Up Variant To Long Mandatory Function" Convert numeric, date/time, numeric string, and date/time string Variant values to the Long (integer) data type. Return True if the conversion was completed successfully. Return False otherwise.

Signature (Visual Basic / VBA)

Public Function FixUpVariantToLongMandFn( _
    ByRef rArgument As Variant _
    ) As Boolean

Parameters

Parameter Description
rArgument The argument which is changed to a Long value, if possible. Function returns False if conversion was not possible, such as when the argument is out-of-range, missing, Null, an error, a pointer, or a non-numeric string.

Notes & Version History

Note rArgument is a passed by reference, so the variable passed from the calling function will likely be modified.