Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My first Biz Object - Base it on the data session class?
Message
From
05/01/2001 11:40:23
 
 
To
05/01/2001 11:04:39
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00459750
Message ID:
00459852
Views:
24
Many Thanks David your answer was just what I wanted:)

>
>>2. I will not be able to use a VCX based class for this so where is the ideal place for the code that creates the class. a) In a PRG file as part of the project or b)As part of my application procedure file.
>
>For generic business object code, such as adding, editing, updating records, you would probably have a prg containing your "base" subclass of Session, with various SET commands for environment in the INIT(), and methods to carry out various generic functions.


>Here you might have a prg with your generic Session subclass level, then another prg with multiple subclasses. You could, of course put them all into one prg, but that would complicate reuse of your generic stuff.

So I guess if I just pop my "base" subclass of Session in my common procedure file PROC_VFP.PRG this might be a reasonable home for it.

My various sub classes of my base could go into either a separate prg which just contains class definitions or I could just put them in my application specfic procedure file.

Are you happy with the idea of me putting class definitions into my procedure libraries or do you think I should keep them in their own seperate library.


Thanks again for such a great answer:)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform