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