Index problem with ver 7.05

Index problem with ver 7.05

Postby James Bott » Thu May 24, 2007 6:27 pm

I am getting an undefined function error when the function is in an index definition. Here is the index definition:

ref + strzero( recno(), 7)

"ref" is a fieldname.

When using TDatabase's addIndex() method I get this error:

Code: Select all  Expand view
Application
===========
   Path and name: C:\Program Files\TP7a\tp7.exe (32 bits)
   Size: 4,122,112 bytes
   Time from start: 0 hours 0 mins 9 secs
   Error occurred at: 05/24/2007, 10:10:03
   Error description: Error BASE/1001  Undefined function: RECNO

Stack Calls
===========
   Called from:  => RECNO(0)
   Called from:  => ORDLISTADD(0)
   Called from: DATABASE.PRG => (b)TDATABASE:TDATABASE(0)

This index was working in previous versions without problems.

Here is the sample test program I am using:

Code: Select all  Expand view
#include "fivewin.ch"

function main()
   local words

   use words new shared
   database words
   words:addIndex("words")  // crashes here

   msgInfo( "OK" )

return nil


I am using FWH and xHarbour with the Borland compiler and NTX indexes. I don't know if this is a FWH or a xHarbour issue.

Anyone else having a similar problem?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Thu May 24, 2007 8:21 pm

James,

Please download xharbour again as it had an important error that has been fixed two days ago:

www.fivetechsoft.com/files/xharbour.exe
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Thu May 24, 2007 11:21 pm

Antonio,

>Please download xharbour again as it had an important error that has been fixed two days ago:

You are a lifesaver! This was giving me fits, and I am on a tight deadline. That fixed the problem.

Thanks so much,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests