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

Coerce To Currency Fast Function
Coerce Make Class

Public Function CoerceToCurrencyFast( _
    ByVal vString As String _
    ) As Currency

"Coerce String To Currency (Fast)"
Return the Currency value whose in-memory representation is the same as the first eight characters in string vString.
Faster version of the CoerceToCurrency function which has restrictive argument types (to avoid argument fix-up overhead).

    CoerceToCurrencyFast(String$(8, 0)) = 0
    CoerceToCurrencyFast(String$(8, 1)) = 7234017283807.6673@
    CoerceToCurrencyFast(String$(8, 2)) = 14468034567615.3346@
See also:
    CoerceToCurrency Function
    MakeCurrencyFast Function
vString: The string whose first eight characters are to be interpreted as a Currency value.
Note: Function does NOT generate an error if vString less than or greater than eight characters long.
Note: If vString is more than eight characters long, the leftmost eight characters are coerced to a Currency value.

Note: This function first converts the string from Unicode to 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.