Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PRG vs Methods
Message
 
To
06/07/2009 23:26:03
Hong Yew
People Quest
Malaysia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01410452
Message ID:
01410467
Views:
92
>If I need to write a PRG class to process data, is Session base class the most appropriate?

Session or Custom are the best classes.

>In my method of my class, is there any difference calling a PRG and calling another method beside inheritance capability?

There's no difference with inheritance capabilities... Well, there are a few differences between PRG and VCX classes, but in the end most are equally powerful. PRG classes tend to be faster. IntelliSense works better on VCX classes. You can add multiple levels of containers with code to a VCX class, but not to a PRG class. Include files provide more possibilities in PRG files. PRG files don't lock the parent class. You can edit a sub class even when the parent class is not available at all. Interfaces can only be implemented in PRG classes. PRG classes are easier for source control. You can only add VCX classes to a form in the form designer. VCX classes find include files automatically.

I'm sure I forgot a lot in the list above.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform