>>>>
>>>>Basically I was thinking about using a form class as a base for my BO object. But aside from the memory, I tested the time it takes to load these type of objects into the memory and it takes considerably more time than, say, custom class.
>>>
>>>I think you will have better results using a custom or session class. do you really need an init?
>>>
>>>Look at this:
>>>
>>>
http://fox.wikis.com/wc.dll?Wiki~TestMemoryCreateDestroy~VFP>>
>>I did see this page. Thank you.
>>
>>I would prefer to use a visual class but with a DataSession. Session has it but not visual. Custom is visual but has not DataSession. Form is the only one that has both. But there is quite a memory hit and loading time with a form.
>>Yes, I do need INIT method. And I would prefer to ability to drop the BO on the form rather than instantiating it in INIT method of the UI form. So it is either a form or custom class instantiated in a session based .prg class. Not as I would like it to be but nothing is perfect, unfortunately.
>
>Dmitry,
>
>I would suggest to go with a session based class. What is the main concern it's not visual? A bit harder to create properties? Or harder to add to a form (only using code)?
It is everything. Work with .PRG is a PITA, especially if you have a lot of methods and properties.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham