Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Life is Beautiful for PRG Based Classes
Message
From
27/06/2001 17:18:45
 
 
To
27/06/2001 15:25:16
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00524299
Message ID:
00524435
Views:
27
Gerry,

>>Fast becoming one of my favorite new features in VFP 7 is the OF clause in DEFINE CLASS. Before this, you had to SET PROC TO SOME_OTHER_PRG before instanciating a subclass that is based on a class in a different PRG file.
>>
>>Now all you have to do is:
>>
>>DEFINE Class MySubClass as ParentClassName of PRG_FileName_Where_ParentClass_Is
>>
>>No more SET PROC TO THE_OTHER_PRG_FILE
>
>That is great. Maybe one day they'll get rid of those goofy VCX/SCX files altogether.

Well, you can do that right now, correct? Just save as a VCX and go turn it into code in the OB. Unless someone could come up with a way to create non-visual classes via some sort of definition mechanism/screen...

But I do like your idea below a lot....

>
>If MS is "listing", here's a clue:
>
>
>DEFINE CLASS xxx AS ...
>   OBJECT aaa AS ..
>      property1
>      property2
>
>      OBJECT bbb AS ...
>         ...
>         OBJECT aaa AS ..
>            ...
>         ENDOBJECT
>      ENDOBJECT
>
>      OBJECT ccc AS ...
>         ...
>      ENDOBJECT
>   ENDOBJECT
>
>PROC aaa.bbb.Something
>   ...
>ENDDEFINE
>
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform