Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION with new data
Message
From
18/06/1998 07:14:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00109067
Message ID:
00109430
Views:
27
>>I have found that set relation between tables is extremely
>>fast. However, it certainly does have it peculiarities.
>>
>>After doing an INSERT INTO, I have found the only way that
>>SET RELATION functions properly is to do a GO RECNO(). Not
>>sure why that is - can someone explain this behavior?
>Tom,
>
>If you are sitting on the parent record and you INSERT INTO the child table. there has been no action taken in the parent work area to cause fox to update the record pointers. GOTO RECNO() is sort of a kick in the pants to fox to say "Hey, something has changed, check it out."

Jim, I am actually adding to the parent record and using the children
records for validating incomming data. I'm surprised at how much
quicker SET RELATION works over SEEK or SQL SELECTs. I kinda
understand why GOTO RECNO() is required after doing an INSERT INTO
into the parent. However, I still must do a GTO RECNO() after doing
a replace on a related child.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform