Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>open a dbf file with indexes, allowing reindexing, etc.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Open a DBF file with indexes, allowing reindexing, etc.
------------------------------------------------------------------------------

 Syntax

        GT_Open(<cFile>,[<aIndex>],[<cAlias>],[<lFix>], ;
                [<lPack>],[<aStruct>]) -> cAlias

 Arguments:

      <cFile> is the name of the file to open.

      <aIndex> is an array of text strings representing
      index keys.

      <cAlias> is the alias to use if successful.

      <lFix> Rebuild the indexes ?

      <lPack> Pack the  file ?

      <aStruct> is the array defining the database
      structure if the file is to be built from scratch.

 Returns:

      cAlias

 Description:

      Open a DBF file with indexes, allowing reindexing,
      packing and returning the alias.

 Examples:

      // Open customer invoices file indexed on invoice
      // number and customer account number, returing the
      // alias of INVOICES
      IF EMPTY(GT_Open('INVS0293', ;
          {'INVS','UPPER(CUSTOMER)'},'INVOICES'))

          ? 'Error'

      ENDIF

 Source: GT_OPEN.PRG

 Author:  Martin Bryant

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