Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Relation - Skip, Skip -1
Message
From
01/10/2005 12:42:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01054605
Message ID:
01055265
Views:
12
>Isn't SCAN enough to ensure an update of the pointer in the related table?! This example does not prove that SKIP 0 also updates that pointer. Also, the LOCATE command is nonsense here, or isn't it?
>
>>SKIP 0 && This is zero?
>>
>>SELECT MYParentTable
>>SET RELATION TO Key INTO ChildTable
>>LOCATE
>>SCAN
>>   SKIP 0
>>   ? ChildTable.Key, EOF("ChildTable"), BOF("ChildTable")
>>ENDIF
>>
This looks like there may be some code between Scan and Skip 0 that may leave the record pointer in a limbo. As shown here, it's really unnecessary, as is the Locate. I assume the code shown is just to demonstrate how it works - even though in this case it would work equally nice without the Skip 0.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform