Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select from unintended table
Message
De
03/04/2003 03:46:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Select from unintended table
Divers
Thread ID:
00773439
Message ID:
00773439
Vues:
38
Hi All,

I've come across an annoying behaviour which seems strange. With two identical databases (content, names etc) in different paths:
OPEN DATABASE myPathA\myDBC
OPEN DATABASE myPathB\myDBC
SET DATABASE TO myPathA\myDBC
USE myView   && View defined in myPathA\DBC "Select * from myDBC!myTable"
SELECT myTable    && Underlying table opened by View
? DBF()    && = myPathB\myDBC
So VFP has selected from the table in the last opened database rather than the current database ! I know that hardcoding the path into the view definition would avoid the problem but it's not an option in my current situation and I've yet to find an alternative solution.

Any suggestions (except an ER)?

Regards,
Viv
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform