Function Codes Ciphers Class

BrailleEncode

Encode a string using the Braille code.

Signature (Visual Basic / VBA)

Public Function BrailleEncode( _
      ByVal vValue As Variant _
    , Optional ByVal vCharsPerLine As Variant _
    ) As Variant

Code Example

    ? BrailleEncode("Sample")
    oo oO Oo OO OO Oo Oo
    oo Oo oo oo Oo Oo oO
    oO Oo oo Oo Oo Oo oo

Parameters

Parameter Description
vValue String containing the phrase which is to be converted into Braille. Function returns Null if vValue is Null or cannot be fixed up to a String.
vCharsPerLine The maximum number of Braille characters per line within the result string. The line of Braille characters will be wrapped if this length is exceeded. Each line of Braille characters will be separated by two carriage return line feed strings. vCharsPerLine defaults to 20 if it is missing or Null or cannot be fixed-up to a number.

Notes & Version History

Summary Within the result string, dots are represented by upper-case "O" characters, spaces within the character matrix are represented by lower-case "o" characters, and spaces between letters are represented by space characters. There will be at most vCharsPerLine characters of Braille codes,