>>>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