Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>turn a charcter string into a binary number</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Turn a charcter string into a binary number
------------------------------------------------------------------------------

 Syntax

        GT_Binary(<cString>) -> <cBinary>

 Arguments:

      <cString> is any text string of alphanumerics

 Returns:

      <cBinary> is a string.  Each byte represents one bit.
                Eight 'bits' make up the ascii number (in
                binary) of the original string.

 Description:

      Turns a character string into a binary number, where
      every eight bits represents the ascii value of one
      byte from the original string, in binary notation.

      This can be used for encryption, bit twiddling,
      bit stripping etc.

 Examples:

      GT_Binary('AB') -> '0100000101000010'

 Source: GTMATH01.PRG

 Author:  Philip Ide

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson