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

Baudot Decode Function
Codes Ciphers Class

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

Converts a string from Baudot code into the corresponding ANSI Windows character string.

Summary: Baudot is a five-bit code capable of representing capital letters, numbers, and certain punctuation characters defined as International Telegraph Alphabet #2.
    BaudotDecode(Chr$(31) + Chr$(3) + Chr$(7) + Chr$(27) + Chr$(10)) = "AV4"
See also:
    BaudotEncode Function
    BaudotEncodeSample Function
Note: Use the BaudotEncodeSample Sub to illustrate the ANSI Windows characters supported by the Baudot code.

vValue: String which is to be converted from the Baudot character set to the ANSI Windows character set. Function returns Null if vValue is Null or cannot be fixed up to a String.
Note: Characters within string vValue which are not valid within Baudot codes will be ignored.

One character in the Baudot represents "letters" mode in which the following characters are interpreted as letters, and there is a "figures" mode in which the following characters are interpreted as numbers or punctuation. This algorithm uses a "letters" or "figures" character to introduce each encoded string, instead of assuming that the decoding "machine" will be in a specific mode.

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