Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter Class - some explanations please
Message
De
12/03/2003 13:34:02
 
 
À
11/03/2003 11:24:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00764286
Message ID:
00765025
Vues:
22
HI Jim.

>I am having trouble getting my head around the whole CursorAdapter Class and its (intended) usage.

To add to Simon's comments, one thing to realize is that a CursorAdapter isn't a different cursor, nor is it the cursor itself, nor does it "contain" a cursor. Rather, CursorAdapter is well-named: the "Adapter" part means that it sits between a data source (eg. SQL Server) and a VFP cursor, and provides a means of moving information both ways (retrieval and updates). As Simon points out, the difference between a VFP cursor created with a SQL SELECT statement, a view, or CREATE CURSOR and one that was created by a CursorAdapter is simply that doing things to the latter will fire events in the CursorAdapter object.

So, think of CursorAdapter as an extension of the existing cursor model, one that allows us to hook into things that VFP has always done behind the scenes.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform