Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IDX file problem in VFP6

Status
Not open for further replies.

fkwong

Programmer
Jul 5, 2002
65
US
I got a "Record is out of range" error when I try to open a table with IDX file. I deleted the IDX file and rebuild the IDX and still have the same error.

Help.

Thanks
 
Hi,

May be you are having a CDX Index file ?

SO try reindex with the command.. REINDEX from the command window after you make the attempt to open the file.

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Yes, I do have a CDX file but with different tags. This particular IDX file is for other purpose. For this particular situation, this program opens the table with this command:

USE jkarofil INDEX jkarofil.idx SHARE

The same command works in the command window but does not work in the VFP6 app. It was still working this morning but I already verified all the things that I can think of. Very strange...

I have another similar issue with same table name in different directories. The above command open fine in the command windows and the data is in the corrent order, but in the application, it open with NO ORDER?? I am 100% sure that the code has not been change.

 
Hi

Make a wild search in your computer along the path for the jkarofil.idx file.
You must be having this index file somewhere else and not in the data directory. May be in your default directory or project directory.

So VFP uses that file when open from Command window.

Once you identify that, life will turn to normal.
:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
It seems to work for me, but remember that if any records were added, deleted or changed in a field that's part of the index expression when the file was opened without this clause, the .IDX file may be out of date, and you should either REINDEX or recreate it. This was always the biggest pain with .IDX files!

Rick


 
Rick, you are absolute correct, it is pain in the butt with the IDX file, it will be gone after the conversion.

I will follow Ramani's advice to search the path.

You guys are GREAT! THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top