AlanDI1
Programmer
- Apr 20, 2003
- 56
I have an application with a number of forms. The system admin has a form to select the data and software location. That is saved to a table and is accessed when the application starts. At start up time a list of public variables is built concatenting the data location and the table names (this app uses old style DB III tables).
In the data environment of each form I have a cursor for each table to be used. In the "Before Open Tables" Event of the Data Environment I set the CursorSource for each cursor to the appropriate variable with the fully qualified name for the table. If I stop the form in debug the value is set correctly. I then let the tables open automatically and proceed with my processing.
This always worked in VFP 3, 5, 6 and 7. Now in VFP 8 I get a "Alias Not Found" message for the first cursor and then all works fine. That includes all the processing related to the fact that those cursor(s) are supposed to be open. Also, if I open a second form I do not get the error message. The error message does not occur again until I close the app and restart it.
What is different about VFP 8?
Any help would be greatly appreciated. Thanks
In the data environment of each form I have a cursor for each table to be used. In the "Before Open Tables" Event of the Data Environment I set the CursorSource for each cursor to the appropriate variable with the fully qualified name for the table. If I stop the form in debug the value is set correctly. I then let the tables open automatically and proceed with my processing.
This always worked in VFP 3, 5, 6 and 7. Now in VFP 8 I get a "Alias Not Found" message for the first cursor and then all works fine. That includes all the processing related to the fact that those cursor(s) are supposed to be open. Also, if I open a second form I do not get the error message. The error message does not occur again until I close the app and restart it.
What is different about VFP 8?
Any help would be greatly appreciated. Thanks