Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prepare C/S app for VFP8.
Message
 
 
À
04/10/2002 03:04:12
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00707676
Message ID:
00709322
Vues:
16
>Hi john,
>
>O.K. I've got a question.
>
>I'm busy writing a C/S app in VFP 7. Since it won't be released before early next year, I guess I want to take advantage of the features of VFP 8.
>
>One of the features I really like is the Cursor adapter class. Now the question is how to prepare my VFP 7 project so that when using the cursor adapterclass it takes the least amount of effort to implement this.
>
>Any thoughts ?
>
>Walter,

In addition to being able to sub-class the DE, I have started to experiment with the Cursor Adaptor, and I think you are going to really like it. Basically what you will do is replace each cursor [remote view] in the DE with a cursor adaptor. These adaptors have properties that you populate to indicate what shared connection handle to use, what the SQL is to retrieve the data, as well as properties to store the SQL needed to perform an INSERT, UPDATE or DELETE. There are also associated logical properties called AllowDelete, AllowInsert, AllowUpdate. You also specify the name of the cursor in the Alias property. So when you issue a tableupdate on the cursor, the SQL in the InsertCmd, UpdateCmd and DeleteCmd properties is used if the associated Allow properties are true.

I have only touched on a few of the properties of the adaptor, but there are many others that you would use to control how data is posted back to the server.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform