Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating views and free tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00148351
Message ID:
00148533
Vues:
21
>>This is an ugly fix, but you could use SET PATH to include the target directory of the table in the VFP path. The problem is that the view is basically issuing USE (TABLENAME), so TABLENAME needs to be accessible.
>>
>>Probably not exactly what you are looking for.
>>
>>Eric Shaneson
>>Cutting Edge Consulting
>>
>>>Has anyone else noticed this behavior in VFP 5?
>>>If you create a local view, either programatically with create sql view or with the view designer, which is intended to send updates to a free table, the view loses it's association to the free table it is intended to update unless that free table is in the current directory or in the same directory as the dbc that holds the view.
>
>If you're using the view designer than the SET PATH is the only way around this. But if you're using CREATE SQL VEIW than simply preface the free table's name with the drive & path where it's located.

Thanks for the suggestion but it doesn't work that way. I did explicitly declare the free table in the Create SQL View syntax. The strange thing is that the correct free table is used to build the query's result set and after the query is performed the free table is still in use however the association (for sending updates) to that free table is lost. Set Path is a good solution but it's still a strange anomaly in the local view behavior.
-Dore
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform