Function BitToC() Foundation

Converts bits set in an integer to characters.

Syntax
BitToC( <nInteger>      , ;
        [<cBitPattern>] , ;
        [<lBlankSpaces>]  ;  // Default: .F.
      ) --> cResultString
Return

Returns a string containing all characters from <cBitPattern> which are found at the same position of a bit set in <nInteger>. When <lBlankSpaces> is set .T. all charcters found at a position of a bit not set are converted to blank spaces.

Description

<nInteger> must be in the range of 0 to 65535.

<cBitPattern> may contain a maximum of 16 characters.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.