Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>m6_settemp():</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  m6_SetTemp():

  Purpose:  Use this function to set the path for temporary files from
            within your Clipper application.  For optimal performance
            set the path to a local hard disk or RAM drive.  Mach SIx
            will only create temporary files when it determines that it's
            necessary to obtain the best performance.

   Syntax:  m6_SetTemp( <cPath> )

    where:  <cPath> = Path where temporary files are to be created.

  Returns:  The current temporary file path.

    Notes:  Will override the DOS environment variable M6TEMP if set.

  Example:   #include "SIXCDX.CH"
             #include "MACHSIX.CH"

             USE Account via "SIXCDX"   // Structural index ACCOUNT.CDX
                                        // opened automatically
             //..............................set temp path to ram drive
             m6_SetTemp( "D:\")
             SET TAG TO Name

             // Copying records with an index order set will cause a
             // temporary index to be created ( if Mach SIx determines
             // that the best performance can obtained with a
             // temporary index ) in the root directory of
             // ramdrive D: in Indexkey() order, in this case,
             // Account->Last + Account->First.

             COPY TO Temp FOR State = "CA"
             CLOSE DATA


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