Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP with SQL Server db
Message
De
29/06/2001 09:03:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00524532
Message ID:
00525133
Vues:
18
>>>How do you do this?
>
>In a prg file, create a subclass of the stock cursor object as your base cursor class. Add the PEMs it needs to handle editing, updating, deleting, validation rules common to all derived cursors, conflict resolution and anything else it needs to ecapsulate all its behavoirs.
>
>For every cursor in your application, you'll create a subclass and the only thing you'll add is the validation rules unique to each cursor.
>
>In same way you created the cursor subclass, create one for the DE. Add your cursors and specify what subclass they are derived from. When the DE loads on a form (you'll have to use vcx forms where you'll load the custom DE in LOAD method), you can get a reference the cursor objects inside and call PEMs directly.
>
>Hope this helps get you started.
>
>Charlie

Charlie,

"validation rules unique to each cursor."
So you use this technique for tables in your database? Your business objects are subclassed from the cursor class?

Thanks,
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform