Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual FoxPro CodeBook
Message
 
To
24/09/1997 09:34:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051376
Message ID:
00051882
Views:
30
Antonio,

>Can anyone tell me if in the Visual FoxPro Codebook by Yair Alan Griver there is a class to one-to-many forms.

In Codebook it's not the form itself that is one-to-many, but rather, business objects that establish one-to-many, parent/child relationships.

Most VFP developers are familiar with objects...buttons are objects, as are forms, pageframes and so on. However, if you stop there, you're really missing out on the power of Visual FoxPro OOP.

The people at Flash created a higher level object called a business object that is typically used to represent the main "things" handled by your application. For example, in a point-of-sale application you could create invoice business objects, customer business objects, inventory business objects, etc. You can add properties and methods to these business objects and encapsulate the characteristics and functionality of a real-world object in a single Visual FoxPro class.

Once you create these intelligent Business objects, you can drop them on a form and establish parent/child one-to-many relationships between them. For example, you could create an invoice parent object and a child invoice item object.

In our Codebook for Mere Mortals framework we have taken the original business object principles established in VFP 3 Codebook and greatly enhanced them, removing all previous restrictions and allowing extended family relationships such as grandchildren.

Regards,
Kevin McNeish
www.oakleafsd.com
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform