Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Life is Beautiful for PRG Based Classes
Message
De
27/06/2001 17:18:45
 
 
À
27/06/2001 15:25:16
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00524299
Message ID:
00524435
Vues:
29
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform