Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How am I supposed to do this?
Message
De
12/11/1998 08:35:13
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
How am I supposed to do this?
Divers
Thread ID:
00156920
Message ID:
00156920
Vues:
61
I have a customer table made up of customers of at least 2 different types. I create three classes: BaseCust, Cust1, and Cust2. For the sake of illustration the method FigureAmtDue is completely different for Cust1 and Cust2. I understand how this works in plain jane code: Create an instance of whichever class you are working with and call the method. However, how is this done on a report where I am trying to figure the total amount due for all customers? Do I create an instance of the class on the record break and subsequently destroy it only to call it again? I must be missing something in my understanding of Classes or is this the way it is actually done? I guess the same thing would apply on a grid if there is a calculated field. Someone please help me before I completely screw up a project. Thanks :)
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform