Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddViewParameter enhancement? (repost)
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00401557
Message ID:
00401582
Views:
28
>Right now, what I'm doing whenever I have a parameter whose value might change is to assign it to a property of the form and then keep changing the property as I need, but I thought it would be easier to simply build some smarts into the bizobj and have AddViewParameter deal with changes as well as additions.

In 3 yrs, I've only had one oddball situation where I didnt specify AddViewParameter in bizobj.postinithook() and that warranted me check manually checking scanning the array to see if my parameter waas already in there. Yet I've had dozens & dozens of situations where AddViewParameter() in PostInitHook() worked just fine.

So in light of that I'd say what your suggesting is unnecessary overhead... even if that functionality was in there it still makes much more sense to me to just flip flop the value of a custom property however many times I like as opposed to running method code for each and every potential change.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Reply
Map
View

Click here to load this message in the networking platform