Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RECALL and parameterized view
Message
De
13/08/2009 05:39:41
 
 
À
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:
01417807
Vues:
66
>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?

You cannot set the view cursor delete flags into the view execution.
* With a single source table you can ...
CREATE CURSOR TT ( AA I)
APPEND BLANK
APPEND BLANK
DELETE
APPEND BLANK

SET DELETED OFF

SELECT DELETED() AS isDeleted,RECNO() FROM TT	&& WHERE ...

* With multiple source tables you must reduce the query context to one, with a derivate subquery ...
SELECT X.isDeleted,... FROM (SELECT DELETED() AS isDeleted,... FROM TT) X JOIN ...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform