ID: Q108635
The information in this article applies to:
In the Extended (32-bit) version of FoxPro for MS-DOS (FOXPROX.EXE), using the LOOKUP() function with a SET RELATION command may cause the system to terminate abnormally. In the Standard (16-bit) version of FoxPro for MS-DOS (FOXPRO.EXE), the above commands may cause an "Internal Consistency Error."
This problem arises while using LOOKUP() on a related table.
To work around this problem, do one of the following:
-or-
Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
WARNING: Close all files and save your data before completing the following procedure.
The following program will generate the error message:
CREATE TABLE city (fc_number n(10), name c(10))
INSERT INTO city VALUES(1,"Toledo")
INDEX ON fc_number TAG fc_number
SELECT 0
CREATE TABLE person (pe_number n(10), fc_number n(10))
INSERT INTO person VALUES (1,1)
SET RELATION TO fc_number INTO city
? LOOKUP(city.name,1,person.pe_number)
Additional reference words: FoxDos 2.50 2.50a 2.50b buglist2.50
buglist2.50a
buglist2.50b exit quit fail 2.60 buglist2.60
KBCategory: kbprg kbbuglist
KBSubcategory:
Last Reviewed: April 18, 1995