Hi, I'm using Harbour 1.1.0-dev nightly build. I'm trying to use my
FoxPro databases using harbour. Here's a test code:

function main()
        REQUEST DBFCDX
        
        select 1
        use /home/anezch/z/data/cor ;
                index /home/anezch/z/data/corno.idx ;
                via 'DBFCDX' ;
                alias cor

        use
return nil

This program always crash with this error message:
Unrecoverable error 1010: hb_cdxIndexPageRead: Read index page
failed.          
Called from ORDLISTADD(0)                                             
Called from MAIN(7) in test.prg

When I tried to access it with FoxPro, there were no problem. If I don't
include .idx in index statement, harbour shows an error telling me that
it could not find corno.cdx. So I suspected that harbour always assume
the index is CDX format regardless I write corno.idx.

Then I tried to create an IDX from harbour:

        use /home/anezch/z/data/cor via 'DBFCDX' alias cor
        index on nocor to /home/anezch/z/data/corno.idx

And when I opened it in FoxPro, I found that corno.idx is actually in
CDX format. So how can I use IDX in Harbour?

Thanks,
Agustianes U.S.

_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users

Reply via email to