<-- Previous || Up || Next -->

Make Long Fast Function
Coerce Make Class

Public Function MakeLongFast( _
    ByVal vValue As Long _
    ) As Variant

"Make String From Long (Fast)" or "Coerce Long To String (Fast)"
Coerce a Long (integer) value into a 4-character string.
Return a four-character string containing the in-memory representation of the Long value vValue.
Similar to coercing a long integer value into character string in the C language.
Faster version of the MakeLong function which has restrictive argument types (to avoid argument fix-up overhead).

    MakeLongFast(0) = Chr$(0) + Chr$(0) + Chr$(0) + Chr$(0)
    MakeLongFast(2) = Chr$(2) + Chr$(0) + Chr$(0) + Chr$(0)
    MakeLongFast(123456789) = Chr$(21) + Chr$(205) + Chr$(91) + Chr$(7)
    MakeLongFast(-1) = Chr$(255) + Chr$(255) + Chr$(255) + Chr$(255)
See also:
    MakeLong Function
    CoerceToLongFast Function
    MakeVarType Function
    LOWORD Function
    HIWORD Function
vValue: The Long (integer) value whose bytes are to be interpreted as a string.

Note: This function converts the string representation of the value to Unicode using the default code page of the system.
v1.3 Change: Removed 16-bit support from this function.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.