Function Codes Ciphers Class

MorseCodeEncode

Encode a string using Morse code.

Signature (Visual Basic / VBA)

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

Code Example

    MorseCodeEncode("SOS") = "... --- ..."
    MorseCodeEncode("sos SOS") = "... --- ...   ... --- ..."

Parameters

Parameter Description
vValue String containing the phrase which is to be converted to Morse code. Function returns Null if vValue is Null or cannot be fixed up to a String.

Notes & Version History

Summary Each Morse code character consists of a series of dots and dashes (represented by period and hyphen characters respectively within the result string).
Note Use the MorseCodeEncodeSample Sub to illustrate the ANSI Windows characters which have a Morse code representation.