Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Methods and propertys from the class to a form.
Message
From
09/08/1999 10:34:21
 
 
To
09/08/1999 10:26:21
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00251407
Message ID:
00251455
Views:
9
>Are you using version 6.0? Check out the new [AS cClassName FROM cClassLibraryName | ?] clause of the CREATE FORM command. (Thanks to JB for pointing out this cool new clause.)
>
>If you are using 5.0 or earlier, you can set the Form base class in your VFP options window. Either enter the base class you want to use, or leave it blank to use the VFP baseclass.
>

And there's always the option of opening the form under Form Designer, doing a Save As Class to save the class definitions, and then remove the embedded controls from the resulting form class. that's save the form properties and methods, and then you can build a form from that class easily enough. You could also open the Form under the Class browser, do a View Code, save that to a .PRG, edit and use the non-visual definition as the basis for another form...

>FWIW, even if you don't change anything from the VFP base class, subclass it anyway. I promise it can't hurt, and it will probably save you many headaches in the future.
>
>HTH
>
>>Nancy, I need that the form use only the based class of Visual Fox.
>>Thanks for your help and regards.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform