Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP9 and cascade view - bug ?
Message
De
30/05/2005 12:09:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01018547
Message ID:
01018553
Vues:
9
>Not sure if this is a BUG, but you may use the V_Lower BEFORE REQUERY() V_Upper

Of course I can. But it looses its magic - the view definition may be far complex
than in my demo and opening all the sub-views in advance means you must study
the view definition, before you use it, to open all the necessities. The VFP8
solution was better for me.
>SET SAFETY OFF
>CLOSE DATABASES ALL
>
>CREATE DATABASE TryDB
>
>CREATE TABLE TryTable ( Jmeno C(10) )
>INSERT INTO TryTable VALUES ( "Igor" )
>INSERT INTO TryTable VALUES ( "Jane" )
>FLUSH FORCE
>
>CREATE SQL VIEW V_Lower AS SELECT * FROM TryDB!TryTable
>CREATE SQL VIEW V_Upper AS SELECT * FROM TryDB!V_Lower
>
>USE IN V_Lower
>USE IN TryTable
>
>USE TryDB!V_Lower
>USE TryDB!V_Upper NODATA  IN 0
>REQUERY("V_Upper")
>SELECT V_UPPER
>GO TOP
>BROWSE
>
>CLOSE DATABASES ALL
>
Pavel Kouril
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform