Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add, Save, Delete,Edit
Message
 
To
19/11/2000 23:52:13
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00442532
Message ID:
00443848
Views:
15
>Dear Sir,
>
>Actually i want to clear my concept that how this class functioning. I need simple class that add, delete, save, edit the record. And i can inherit on any form.
>
>I have develop this class but it works only one table. If the form has multiple table than what i have to do?????
>
>Yours truly,
>Nafees

In general your class should have an array (or array property) which will contain the all opened cursors information, then loop through them and make the updates:
* DataManager class OnSave()  method.
FOR j = 1 TO ALEN(laTable,1)
	SELECT(laTable[j,1])
	this.Update()
NEXT
Update method will check all things like buffering, modified fields, error handler calls, etc.

You can find a sample of such code for example in Visual Extend framework
(http://www.devigus.com) in VFXOBJ.VCX - cDataTableMgr class.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform