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>how can i delete a structural index file with it's dbf still open?:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  How can I delete a structural index file with it's DBF still open?:

  By either using the DELETE TAG ALL command or the Sx_KillTag(.T.)
  function.

  Since structural CDX/NSX files cannot be closed after the DBF file has been
  opened, you can't do this:

          // Assume TEST.DBF has a structural TEST.CDX file

          USE TEST VIA "SIXCDX"
          IF file( "TEST.CDX" )
             fErase( "TEST.CDX" )   // Fails since CDX file is open
          ENDIF

  But, you CAN do this:

          IF file( "TEST.CDX" )
             fErase( "TEST.CDX" )   // Succeeds since CDX is closed
          ENDIF
          USE TEST VIA "SIXCDX"

  And you can also do this:

          USE TEST VIA "SIXCDX"
          Sx_KillTag( .T., "TEST" )



See Also: How can I close a structural CDX/NSX file? Sx_KillTag() KILL TAG

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