Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unload depends on parameters
Message
From
23/03/2006 13:52:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Unload depends on parameters
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01107112
Message ID:
01107112
Views:
60
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é
Next
Reply
Map
View

Click here to load this message in the networking platform