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:
00113459
Views:
20
>I had a blast at FoxPro school (AppDev) and learned quite a bit. But I'm finding putting the suggestions into practice is harder than the instructor made it look.
>
>One bit of advice he gave was to never use the base classes. He said to subclass them all and use those, in case you ever decide you want to, say, change all the textboxes in your app. That sounds like good advice, so I planned on doing it until I tried it and ran into a big problem. Where are the base classes?
>
>I did a search on my hard drive for *.vcx and didn't come up with any that seemed likely. Are they in a .vcx? If not, how do you subclass them?
>
>Thanks,

Hi,

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.
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform