Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

W2BIN()

Convert Harbour numeric into unsigned short encoded bytes
---------------------------------------------------------------------------------

 Syntax

        W2BIN( <nNumber> ) --> cBuffer  

 Arguments

        <nNumber>   is a numeric value to convert (decimal digits are 
                  ignored).

 Returns

        W2BIN()   return two bytes character string that contain 16 bit 
                  encoded unsigned short integer (least significant byte
                  first).

 Description

      W2BIN() is one of the low level binary conversion functions, those
      functions convert between Harbour numeric and a character
      representation of numeric value. W2BIN() take a numeric integer
      value and convert it into two bytes of encoded 16 bit unsigned short
      integer.

      You might ask what is the need for such functions, well, first of
      all it allow you to read/write information from/to a binary file
      (like extracting information from DBF header), it is also a useful
      way to share information from source other than Harbour (C for
      instance).

      W2BIN() is the opposite of BIN2W()

Status

      Ready

 Compliance

      W2BIN() is an XBase++ compatibility function and does not exist  as a
      standard CA-Clipper 5.x function.  This function is only visible if
      source/rtl/binnum.c was compiled  with the HB_COMPAT_XPP flag.

 Files

      Library is rtl



See Also: BIN2I() BIN2L() BIN2U() BIN2W() I2BIN() L2BIN() WORD() U2BIN() FWRITE()

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