Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Started with classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00604572
Message ID:
00604605
Views:
24
One approach:

- Subclass all objects (forms, cmd buttons, listboxes, etc.) into a single class
- Add the new vcx file to the class tab of your project
- Drag the objects from the project's class tab to your form.

Another way (once you've subclassed all of your objects):

- Select Tools/Options and the Field Mapping tab
- Map all of your data types
- Open your data environment
- Drag fields from the data environment to your form and the mapped object will be added to the form.

Gerry

P.S. Now that you're starting to become aware of classes, always subclass your objects. You can save large amounts of effort at later times by doing this. For example, I routinely leave coding security until later in the project and then add it to the base forms and command buttons. Even if you don't utilize your subclassed objects, someone may use them in the future.



>Okay Okay I am starting to write another app and all I am reading about is classes. I have an idea of what they are for but am unsure of the best way to use them. I can create a class and add it to the library and understand there are Fox base classes which I can subclass as my own, But is there something I am missing? If I created a text box class how would I implement it? How do I implement it. Could I add it to the Component Gallery? When do I use the Component Gallery over a Class?

>Thanks in advance
>Anthony
Previous
Reply
Map
View

Click here to load this message in the networking platform