We have a 30-year old SBT package that was written in dBase III and ported over the years to VFP 3,6, and now 9.0.
It is working great and we don't want to change anything.
I'm looking to try get around the VFP restriction that same .dbf can not be opened in more than one work area.
The need is for a shared subroutine to open a commonly needed .dbf for processing without having to worry if that .dbf is being opened in any of the calling programs.
New to SQL, I thought I could get around that restriction by using SQL select cursors since it seems to me I can create multiple cursors against the same .dbf. To my surprise, the target .dbf is opened in a random work area when I issued the command 'Select * from .dbf into cursor testcursor alias c1'. And upon return to the calling program the target .dbf remains open and will cause an error to occur if the calling program tries to open the same target .dbf in a different work area.
Can someone help with some insight if my description can be understood ?
Much obliged,
Steve the gray haired xBase programmer in Houston, a very experienced one nonetheless.
It is working great and we don't want to change anything.
I'm looking to try get around the VFP restriction that same .dbf can not be opened in more than one work area.
The need is for a shared subroutine to open a commonly needed .dbf for processing without having to worry if that .dbf is being opened in any of the calling programs.
New to SQL, I thought I could get around that restriction by using SQL select cursors since it seems to me I can create multiple cursors against the same .dbf. To my surprise, the target .dbf is opened in a random work area when I issued the command 'Select * from .dbf into cursor testcursor alias c1'. And upon return to the calling program the target .dbf remains open and will cause an error to occur if the calling program tries to open the same target .dbf in a different work area.
Can someone help with some insight if my description can be understood ?
Much obliged,
Steve the gray haired xBase programmer in Houston, a very experienced one nonetheless.