Information générale
Catégorie:
Programmation Orientée Object
Dean;
I did something similar with VFP 3.0 , almost six years ago, when a P100 CPU was the fastest machine available. It was a customer requirement to not have "live edits", etc. and worked with complex forms. I can recall that with about 50 objects on a form it took about 1.0 seconds to instantiate a form. You could use an IIF() statement to gain about 15% in speed but with a CPU or 200Mhz or faster I do not think you will notice any difference.
There may be a better way to do it but it worked for me and the customer had me convert it to VFP 6 a year ago because of "Y2K" concerns (gee, almost forgot that term).
I liked the concept as you just changed a property of the form and all the objects responded as required. Another way to do it is to create FOR loops for each group of objects - very creative and the code is so nice to show others how to write such code. Not my cup of tea but others love to do things that way. If it works and the customer is happy, what more can I say?
Tom
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement