Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add, Save, Delete,Edit
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00442532
Message ID:
00443848
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform