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

Braille Encode Function
Codes Ciphers Class

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

Encode a string using the Braille code.

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,
Example:
    ? BrailleEncode("Sample")
    oo oO Oo OO OO Oo Oo
    oo Oo oo oo Oo Oo oO
    oO Oo oo Oo Oo Oo oo
See also:
    ReplaceString Function
    Replace Function (Visual Basic)
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.

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