Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What base class to use in VFP 9 for biz?
Message
From
17/06/2005 13:42:29
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01024176
Message ID:
01024400
Views:
14
Dmitry -

What do you recommend to use as a base class in VFP 9 when creating a business class? I prefer to use visual classes.

Thank you in advance for any suggestions.


If your business classes are the kind that manipulate data directly, then Craig's suggestion of using the Session class might make sense. However, this might be tricky if you are planning on dropping them on forms, perhaps 2 or more at a time.

If, on the other hand, you have separated out business LOGIC from business DATA, and you like having the business logic classes dropped on forms, then it is quite nice to use the Label class as your base bizlogic class. Just make .Visible=.F., and set the text of the label to the name of the Business logic, eg, in the Init of your base BizLogic class:
THIS.Caption=THIS.Class
THIS.Visible=.F.
THIS.BackColor=<yellow>
THIS.FOreColor=<red>
Then you can see clearly what bizlogic classes are on the form. (If you have room, on the form, of course). Ths might not work for everyone.

- Colin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform