Function Fix Ups Class

FixUpVariantToByteMandFn

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

Signature (Visual Basic / VBA)

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

Parameters

Parameter Description
rArgument The argument which is changed to a Byte 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.