Files
harbour-core/harbour/extras/hbapollo/tindex.prg
Viktor Szakats 340318e66d 2012-07-21 19:09 UTC+0200 Viktor Szakats (vszakats syenar.net)
+ extras
  - examples
  * doc/dirstruc.txt
    * renamed 'examples' to what it is more: 'extras'
2012-07-21 17:10:27 +00:00

59 lines
2.0 KiB
Plaintext

/*
* $Id: tindex.prg 9576 2012-07-17 16:41:57Z andijahja $
*/
/*
* SixAPI Project source code:
*
* Copyright 2010 Andi Jahja <xharbour@telkom.net.id>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*/
#include "hbclass.ch"
CLASS TIndex
VAR cIndexFile /* Index File Name */
VAR cExpression /* Index Expression */
VAR iMode /* iOption: IDX_NONE=0 IDX_UNIQUE=1 IDX_EMPTY=2 */
VAR lDescending /* BOOL lDescending */
VAR cCondition /* FOR Condition */
VAR cAlias
METHOD New( cIndexFile, cExpression, iMode, lDescending, cCondition, cAlias )
METHOD CREATE()
ENDCLASS
METHOD New( cIndexFile, cExpression, iMode, lDescending, cCondition, cAlias ) CLASS TIndex
::cIndexFile := cIndexFile /* Index File Name */
::cExpression := cExpression /* Index Expression */
::iMode := iMode /* iOption: IDX_NONE=0 IDX_UNIQUE=1 IDX_EMPTY=2 */
::lDescending := lDescending /* BOOL lDescending */
::cCondition := cCondition /* FOR Condition */
::cAlias := cAlias /* Alias */
RETURN Self
METHOD CREATE() CLASS TIndex
// This is For Single TAG Index File : DBFNTX
// DBFCDX and DBFNSX Should Use TAG
RETURN sx_Index( ::cIndexFile, ::cExpression, ::iMode, ::lDescending, ::cCondition, ::cAlias )