Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION TO and Index Tag
Message
 
 
To
15/08/2019 16:15:24
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01670100
Message ID:
01670103
Views:
52
>>>When you SET RELATION TO, in order to update one cursor from another, do both cursors have to have the index build (and set) on the field used for the relation?
>
>No - only the child table needs the order.
>
>>>The reason I am asking is when I was doing a small test of two cursors I only created an index on the Target cursor (the one which has the SET RELATION TO set). And it worked in my test case. But when I do it in the program code, it does not work. But once I build an index on the cursor TO which the relation is set, it works.
>What am I missing?
>
>Hard to say. If the relation is on string rather than integer, check field lengths and other reasons why VFP might not find a match. What's the index?

The index tag is on the Integer field. And I found another problem with the SET RELATION TO approach. I will start a new thread and describe the problem on the example.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform