Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Way to Handle Key Fields in Custom Class
Message
 
 
À
29/11/2001 14:38:59
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00587672
Message ID:
00587686
Vues:
31
>I have a class that handles updates/adds/deletes for a passed view. Everything works fine, but I have a methodology question. One of the methods (UpdateKeyFields) is used to handle populating key fields and the control field with required data when adding a record. I use a case statement that has specific criteria depending on the view passed. I would like to have the class perform entirely independently and having this conditional method bothers me. It's no big deal to modify it for different views within the application - I just feel it should be done differently. Any ideas? Thanks!
>
>Regards, Renoir

Can you show some code, so we can suggest, how to make it generic?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform