Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing without class editor coming up
Message
From
07/07/2004 09:12:39
Randy Riegel
Zimish Contracting
Ohio, United States
 
 
To
05/07/2004 09:01:54
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00920647
Message ID:
00921349
Views:
23
>>how can I subclass an item without the class editing screen coming up? I do the command:
>>
>>
>>CREATE CLASS new_checkbox OF new_base as my_checkbox FROM my_base nowait
>>

>>
>>Any ideas? I have used the "subclass_it.prg" program in downloads and it does the same thing. I'm using VFP8.
>
>If you want to put classes in a VCX, I don't know a way to prevent it, but you can set things up so that the Class Designer closes immediately.
>
>
>KEYBOARD "{CTRL+F4}Y"
>CREATE CLASS new_checkbox OF new_base as my_checkbox FROM my_base
>
>
>Note that I removed the NOWAIT. You need a wait state for the keyboard characters to take effect.
>
>Tamar

I figured out a way to do this without the Class Designer but don't know if there are any disadvantages to it. I created a classlib using "create classlib mynewlib". I then opened both the original class library and the new one as tables then added records to the new class library and put the same data in the fields as the Class Designer does when you subclass. It works so far and will open in the designer fine after I did everything. Does anyone know if I'll run into a problem somewhere by doing it this way?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform