Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where's the beef? (er...base)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00112878
Message ID:
00113459
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform