Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create VS Define Classes
Message
From
11/03/1999 06:39:24
 
 
To
10/03/1999 18:12:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00196090
Message ID:
00196274
Views:
26
>Marty,

>Another question ... what is the benefit to making these classes instead of just the ordinary old functions/procedures that we're all used to using? After all, I ended up putting them into a procedure library that's accessible from the entire project ... what's the diff? Enquiring minds want to know! < g >

Defining classes programatically (i.e. using DEFINE) is just like defingin the classes visuall - in fact if you view the code of your VCX (using the Class browser) you'd see the DEFINE CLASS syntax
The benfit of this over old function/procedures is the benfit of OOP vs procedual coding

As David said in most cases you can define classes visually which is more developer-friendly there are certain cases though when it is better to use a prg
for example classes VFP does not let you sub-class visually such as page,header,dataenvironment etc. or subclasses of ActiveX controls to prevent version problems

Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform