Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's the beef? (er...base)
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00112878
Message ID:
00113758
Views:
27
>The "BASE" classes are built into Visual FoxPro and, therefore, do not have .VCX files associated with them. The idea when you create a subclass is to create a .VCX with your initial subclasses which you can work with.
>
>For example, if you wanted to subclass the base textbox and put the subclass into a .VCX called CONTROLS.VCX, you would:
>
>CREATE CLASS myTextBox OF Controls.vcx AS TextBox
>
>As opposed to creating a subclass of myTextBox (called mySubtextBox and stored in SubControls.VCX) which would look like this:
>
>CREATE CLASS mySubTextBox OF SubControls.vcx AS myTextBox FROM Controls.VCX
>
>Hope this helps.

I tell ya, I was stumped on how to create a .vcx to begin with for a while until I realized it would do it for you. I ended up just typing CREATE CLASS, because then it came up with a list of things to base it on, which meant I didn't have to try and remember all the base classes.

Thanks,
Previous
Reply
Map
View

Click here to load this message in the networking platform