Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question about classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00508570
Message ID:
00508773
Vues:
20
>I know how simple it is to view class code, and extract it to a .prg if I wanted, however, going in reverse. ??
>
>I have a few classs in .prg which I have picked up, and use. and I would like to put them in a non visual class. that I can then drag and drop onto forms or just call directly without having to put them into my proceedure files.
>
>Is there some simple method which I am missing to reverse the process of viewing class code, which reconstructs class's visually. ?
>
>thank.... or am I really missing something ?
>
>
>Bob Lee

Unless there is a tool here on the UT, I don't believe that there is a way to create visual classes (VCX's) from those in a .PRG. However, you don't have to have PRG-based classes in your procedure file. As long as the code is built into your executable, or available in your search path, you can use NEWOBJECT to instantiate it. NEWOBJECT (both the function and class method) allow the specification of PRG's as your class "source", although the parameters are slightly different.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform