Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor Adapter Questions
Message
From
12/02/2004 02:41:17
 
 
To
09/02/2004 15:51:50
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00875624
Message ID:
00876580
Views:
6
>I'm trying to get my mind around the new Cursor Adapter Class in VFP8 and I have more questions than answers. I've studied Chuck Urwiler's article on the subject and it makes sense to a point. I've followed his examples and created a couple of them. My questions deal with how do you actually implement a Cursor Adapter Class in the real world? Do I create a Data Environment Class that is used instead of the base DE for each form and object? Do I create a Cursor Adapter Class for each table that I have in my system? Do I drop these on the custom Data Environment Class that I've made the default DE for my screen form? Are they used in the same way as a remote view would be? Where would I find more real world examples and articles in how to implement the Cursor Adapter Class?
>
>Thanks,
>Jim White

Hi Jim

I have writter 2 very simple articles on using CA's. You will find them in the article section at www.foxite.com

As to real world examples I am in the process of developing one using similar methods as described in the articles for smaller (narrow) tables and the excellent CABuilder from Mark McCasland for the wider ones. All data access is thru CA's. I use SPT only for calling stored proc's.

All my forms are based on a single class form which loads a datamanager object. This datamanager object is data driver from local VFP tables and then loads and manages ALL commuincation and actions of the CA's. I have 2 types of CA's Updatable and Lookups. The datamanager handles all this ffor me and buttons on the form class call the methods of the manager which in turn UPDATE(), INSERT() etc for the form.

HTH

Bernard

So far this has worked very well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform