HowardHammerman
Instructor
I am working with a legacy database using free *.dbf files and *.idx type index files.
I need to open the same table twice in two different workspaces. I use the following code from the command window and it works:
However when I put it into my program it does not work. I get no error message. Here is a code fragment:
The problem is that when I get to the "skip" command the in-rnum.idx is active not the in-date.idx.
I am able to work around it by noting the record number and then re-using the in_res table with the in-date.idx.
However this slows down the program.
Any ideas?
Using visual foxpro 6.
Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
FREE independent Crystal newsletter
howard@hammerman.com
800-783-2269
I need to open the same table twice in two different workspaces. I use the following code from the command window and it works:
Code:
sele a
use in_res index in-date shared
sele b
use in_res index in-rnum shared again
sele a
However when I put it into my program it does not work. I get no error message. Here is a code fragment:
Code:
sele a
use in_res index in-date.idx shared
sele b
use in_res index in-rnum.idx shared again
sele a
do while !eof()
sele b
seek a.recno
<<do various things>>
sele a
skip
enddo
The problem is that when I get to the "skip" command the in-rnum.idx is active not the in-date.idx.
I am able to work around it by noting the record number and then re-using the in_res table with the in-date.idx.
However this slows down the program.
Any ideas?
Using visual foxpro 6.
Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
FREE independent Crystal newsletter
howard@hammerman.com
800-783-2269