advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CVxMBF, MKxMBF$ Functions Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 CVxMBF(stringexpression$)
 MKxMBF$(numeric-expression)
 
 Usage Notes
   ■ CVxMBF and MKx$ functions are used to write real numbers to random-
     access files using Microsoft binary format (MBF). They are particularly
     useful for maintaining data files created with earlier versions of
     Basic.
 
   ■ The MKSMBF$ and MKDMBF$ functions convert real numbers in IEEE format
     to strings containing MBF numbers so they can be written to the random-
     access file.
 
   ■ To write a real number to a random-access file in Microsoft binary
     format:
     • Convert the number to a string using MKSMBF$ (for a single-precision
       number) or MKDMBF$ (for a double-precision number)
     • Store the result in the corresponding field (defined in the FIELD
       statement)
     • Write the record to the file using the PUT statement
     See: FIELD Statement  PUT Statement
 
   ■ Currency type numbers are not stored in IEEE floating-point format, so
     they cannot be converted to strings that contain Microsoft binary format
     numbers.