[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FN_BIN2I()
 Convert a binary string to numeric
------------------------------------------------------------------------------
 Syntax
 
       fn_Bin2I( <cBinStr> ) -> nValue
 
 Arguments

      <cBinStr> is a string of bytes representing a number.

 Returns

      The decimal value of <cBinStr>.

 Description

      Internally, all information is stored as a series of bytes.  When
      performing a direct read from memory, a character string will be
      returned.  Use this function to convert that string to its Clipper
      numeric equivalent.

      This function only returns integer values.

 Examples

      /* convert a string containing CHR(0)+CHR(0)+CHR(222)+CHR(175) */

      ? fn_Bin2I( "  #." )                                                      // 57007


 Source: N:\SRC\MISC\FNBIN2I.PRG

 Author: Steve Larsen

See Also: fn_I2Bin() fn_PeekStr() fn_PokeStr()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson