Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RECALL and parameterized view
Message
De
12/08/2009 08:10:49
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
12/08/2009 07:20:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01417479
Message ID:
01417489
Vues:
61
Not by VFP's internal. There is no equivalent of RECALL in SQL (View operation USE; REQUERY, TABLEUPDATE, ... is all SQL while RECALL is xBase)

but it should be posible to retrive the deleted records via
SELECT *, DELETED() AS lDel from SourceTable YourTable where ...
Then you can SCAN the View / Cursor and use
SCAN FOR lDel
 ...
 RECALL FOR ... in SourceTable
ENDSCAN
You might also consider the use of SET RELATION here.

Agnes
>Hi,
>
>I have a cursor which is a parameterized view that conditionally loads a set of records from its underlying table while SET DELETED is OFF.
>
>I notice that if I SCAN throught the cursor, DELETED() function always returns .F. for all the loaded records even if some of them are actually deleted records in the underlying source table.
>
>How can I, or it is possible for me to load and RECALL deleted records of source table with a parameterized view?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform