Signature (Visual Basic / VBA)
Public Function ToNonExtended( _
ByVal vValue As Variant _
) As Variant
Code Example
ToNonExtended(Chr$(255)) = "y"
ToNonExtended(String$(3, 255)) = "yyy"
ToNonExtended("Sample.") = "Sample."
Parameters
| Parameter | Description |
|---|---|
| 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. |
Notes & Version History
| Details | 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". |
| Note | Function only works for characters in the ANSI Windows character set because those definitions are hard-coded. |