Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can any one give me information regarding the visual cla
Message
 
À
22/07/1998 05:10:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00120058
Message ID:
00120202
Vues:
27
>help!!!
>
> can any one give me information regarding the visual classes and where exactly we use them????
>
>
>
>any help would be deeply appreciated
>thanking you

Rahd,

Using classes is part of object oriented development. The issue of when to use classes is a large subject adn is far beyond anything that could be posted in a message. There are hundreds of books written about the use of classes.

In a nut shell, you use a class to define the properties and behaviors of an object that you will create from the class. For example, let's look at an exit button for your forms. You put the VFP baseclass commandbutton in every form and write the same code in its click event. That gives you maintenance nightmares because if you want to change the way the button releases the form you have to edit every exit button in every form.

If you, instead, created an exitbutton class in a class library and put the code THISFORM.Release() in it click. Then used that button class in your forms, you would have one button class for all exit buttons and the maintenacne would be a simple situation of editing the button class and rebuilding the application.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform