Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.193
  HXTT Cobol 5.0.193
  HXTT DBF 7.1.194
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel 6.1.197
  HXTT Json 1.0.165
  HXTT Paradox 7.1.193
  HXTT PDF 2.0.193
  HXTT Text(CSV) 7.1.193
  HXTT Word 1.1.193
  HXTT XML 4.0.194
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
complex DBF indexes
Vadym Osadchuk
2006-11-21 07:28:50.0
I'm trying to open DBF file with complex index:
IF( LEN(ALLTRIM(HPHONE))=8, LEFT(ALLTRIM(HPHONE),3)+RIGHT(ALLTRIM(HPHONE),4),
LEFT(ALLTRIM(HPHONE),3)+SUBSTR(ALLTRIM(HPHONE),5,3))+RIGHT(ALLTRIM(HPHONE),4)))
and got following error:
ava.sql.SQLException: Can't parse index expression IF( LEN(ALLTRIM(HPHONE))=8, LEFT(ALLTRIM(HPHONE),3)+RIGHT(ALLTRIM(HPHONE),4),LEFT(ALLTRIM(HPHONE),3)+SUBSTR(ALLTRIM(HPHONE),5,3))+RIGHT(ALLTRIM(HPHONE),4)))
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.dbf.v.a(Unknown Source)
at com.hxtt.sql.dbf.l.char(Unknown Source)
at com.hxtt.sql.dbf.l.(Unknown Source)
at com.hxtt.sql.dbf.l.if(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.i.a(Unknown Source)
at com.hxtt.sql.dbf.d.a(Unknown Source)
at com.hxtt.sql.dbf.d.(Unknown Source)
at com.hxtt.sql.dbf.u.a(Unknown Source)
at com.hxtt.sql.bl.if(Unknown Source)
at com.hxtt.sql.db.a(Unknown Source)
at com.hxtt.sql.db.a(Unknown Source)
at com.hxtt.sql.bl.a(Unknown Source)
at com.hxtt.sql.bl.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.dd.executeQuery(Unknown Source)


Is it possible to continue work with thsi DBF file, e.g. ignore this index?
Can you create some properties to turn on/off errors like this?

Thanks.
Re:complex DBF indexes
HXTT Support
2006-11-21 07:53:47.0
>SUBSTR(ALLTRIM(HPHONE),5,3))+RIGHT(ALLTRIM(HPHONE),4)))
Wrong () couple. It should be: SUBSTR(ALLTRIM(HPHONE),5,3)+RIGHT(ALLTRIM(HPHONE),4))

loadIndices: Indicates whether load automatically and update index files. Default value: true

You can use loadIndices=false.
Re:Re:complex DBF indexes
Vadym Osadchuk
2006-11-21 08:20:11.0
thanks a lot.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap