Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I create classes in a vcx programatically?
Message
De
21/12/2006 10:24:01
Bill Drew
Independent Consultant
Chicago, Illinois, États-Unis
 
 
À
20/12/2006 17:14:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01179343
Message ID:
01179571
Vues:
15
>Maybe a .prg would be simpler - just
>
>
>text textmerge to lcPrgtext noshow
>define class <<classname>> as custom
>
><<lcProperties>>
>
><<lcMethods>>
>enddefine
>endtext
>strtofile(lcPrgText, lcPrgFile)
>compile (lcPrgFile)
>
>
>And you get your fxp. But since we don't need to turn this into another "prg vs vcx" thread, whichever works for you is OK.

Dragan,
That was very helpful. I'm going to use the prg method. Simpler is better.
The only benefit to the vcx might be that I would be able to replace smaller sections of the program as the rules change -- rather than ship an entire fxp. But it is probably only marginally better and not worth the complexity of vcx creation. I didn't hear anybody say that there would be a performance benefit from the vcx approach.
Bill
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform