Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Relation - Skip, Skip -1
Message
De
01/10/2005 12:42:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/10/2005 12:01:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01054605
Message ID:
01055265
Vues:
18
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform