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

To Non Extended Function
Character Types Class

Public Function ToNonExtended( _
    ByVal vValue As Variant _
    ) As Variant

"To Non Extended Characters"
Convert the "extended" characters within a string to their "non-extended" counterpart.

The "non-extended" version of characters whose ASCII values ranges from 128 to 255 is the most similar character whose ASCII value is between 32 and 127. For example, the non-extended version of A-umlaut is "A" and the non-extended version of C-circumflex is "C".
Examples:
    ToNonExtended(Chr$(255)) = "y"
    ToNonExtended(String$(3, 255)) = "yyy"
    ToNonExtended("Sample.") = "Sample."
See also:
    NonExtendedCharacters Property
Note: Function only works for characters in the ANSI Windows character set because those definitions are hard-coded.

vValue: The character or string which is to be converted to its non-extended counterpart. Note: Special argument fix-up code.

If vValue is a string, then function returns that string with each extended character converted to its non-extended counterpart.

If vValue is numeric (and not a numeric string), then function returns the ASCII value of the non-extended version of the character with ASCII value vValue.

Function returns Null if vValue cannot be fixed up to a String or number.

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