Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP with SQL Server db
Message
 
To
28/06/2001 16:23:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00524532
Message ID:
00525108
Views:
22
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform