I love foxpro programming. I have failed to connect two databases through foxpro
for dos programming. Can anyone help me for supplying a sample program relating my problem. I will be greatful.
Hi probir,
As per my best information and knowledge, FoxPro for DOS is having tables only and no databases.
If you are talking about connecting two DBF files then what actually you want to perform. The two dbf's can be open by saying:
SELECT 0
USE DBF1
SELECT 0
USE DBF2
And later on can be refrenced by saying:
SELECT DBF1 or SELECT DBF2
To connect two tables (first and second),
(simplyest case)
both usually contain same fields, e.g. keyfield.
Second must be "index on keyfield tag keyf",
first "set relation to keyf into second addi".
Skip in first result in corresponding move in second.
What failed ?
Do Not Forget. The fields in the Parent DBF and the Child Dbf, MUST be the same type (characters works the best) and length but the field name can be different. The biggest reasons most relations do not work correctly is the fact the field lengths are different lengths. David W. Grewe
Dave@internationalbid.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.