Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unload depends on parameters
Message
De
23/03/2006 13:52:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Unload depends on parameters
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01107112
Message ID:
01107112
Vues:
57
I have to modify a form. Right now that form returns an ID. Now I have to modify it so it returns an ID and the description that goes with that ID.

Usually when I did something similar I modified each places where that form was called and modified the code so it would work with the additional parameters.

But now I'm wondering about the beautifulness <s> of the following approach. I'm wondering because in that case there are many places the modified form is called.

So instead of modyfying each place the form is called I'm thinking of adapting the code in unload and change what is unloaded according to the parameters passed to the form.

Example:
do form Whatever with InitialID
   The code in the unload would'nt return the description

do form Whatever with InitialID, "ReturnDescription"
   The code in the unload would return the description
So is this acceptable or is there something that I don't think of that makes this a stupid approach?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform