Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip of the Day --- Views
Message
From
27/09/1999 23:32:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Tip of the Day --- Views
Miscellaneous
Thread ID:
00269784
Message ID:
00269784
Views:
48
Hi All,

When using local views, it is not only unnecesary, but probably undesirable to explicitly open the base tables for those views. This gets one into situations where TABLEUPDATE() is being applied to the view and changes are not being saved because the base table is being buffered and never updated.

VFP will open the base tables when the view is USEd. Does this mean you want to access them? NO. Avoid temptation. Stick with the view and apply all deletes, inserts, and updates to the view and then update or revert the view.

If your view is complicated and involves 4 different base tables, how many tables/views are in your DataEnvironment? One. The view.

IF you are new to VFP, keep this tip in mind when designing your application. It'll save you a lot of grief.

:-)
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Next
Reply
Map
View

Click here to load this message in the networking platform