Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form DE vs. Load event
Message
From
31/01/2006 23:25:01
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Form DE vs. Load event
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01092186
Message ID:
01092186
Views:
59
I have quite a large application (VFP8 front-end, SQL-server back-end) in which I now find I require to use alternative databases for some forms, but only for some clients. Up to now many remote-view cursors have been dragged from the database designer into the form DE, but that brings with it a hard-coded path to the database container the view was dragged from. As far as I can see, if an alternative dbc is required I will have to change the .database property of each cursor at runtime, but I think a neater way will be to open each view explicitly in form.load(), preceded by SET DATABASE TO (MyDBC).

Apart from losing the 'visual' aspect of viewing tables/cursors in the form DE at design-time, are there any other disadvantages of opening cursors manually in form.load()? I can still set indexes, relations, etc. in code, but I want to make sure I don't miss anything before I make this change to many forms.

TIA,
Alan
Next
Reply
Map
View

Click here to load this message in the networking platform