Function Spellings Class

SpellPolice

Spell a phrase using the police phonetic alphabet.

Signature (Visual Basic / VBA)

Public Function SpellPolice( _
    ByVal vValue As Variant _
    ) As String

Code Examples

    SpellPolice("Ted 123") = "Tom Edward Mary   One Two Three"
    ,     Comma
    .     Period
    0..9  Zero..Nine
    A..Z  Adam..Zebra

Parameters

Parameter Description
vValue The string containing the characters that are to be spelled using the police phonetic alphabet. Any characters other than those mentioned in the table above are ignored.

Notes & Version History

Note Function is pre-programmed with the phonetic spelling for the following characters: The function adds a space between each of the characters which have a phonetic equivalent, and it replaces a single space with three spaces (two spaces plus the one-space character separator), so that word breaks can be easily identified in the result string.