Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP new bug: UPDATE with SET RELATION fails
Message
 
 
À
10/12/2001 15:02:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00588420
Message ID:
00592323
Vues:
19
>This kind of update seems to be very tricky.
>Are you using it in your programs ?
>
>>Think of what a SET RELATION does and imnplement it yourself. Issuing a SET RELATION causes a SEEK() to be performed in the child table whenever the record pointer is moved in the parent. Add the SEEK() logic to your WHERE clause and you should have it.
>>UPDATE Cursor1 ;
>>    SET Cursor1.SomeField=RCursor1.SomeField ;
>>    WHERE SEEK(Cursor1.LinkField,'RCursor','SomeTag')
>>

I've used derivations in the past. Nothing currently.

Why do you say it's tricky? I often use a combination of SQL and xBase syntax. It's one of reasons I like VFP.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform