> Pete,
>
> While I have used formsets in the past (typically when I have to do a "quick and dirty" fix to somebody else's procedural code,) I have to say that I normally avoid them like the plague. The same is true of public variables. I have used them in the past, and I will probably use them in the future, but for specific purposes and for specific reasons. Both you and Andy have identified that if you actually understand the pitfalls, go ahead and use formsets or public variables. You know the issues involved, and you understand where problems are likely to occur.
>
> Andy's primary issue with formsets (and public variables) is that they break some of the fundamental rules surrounding OOP coding practices. An object should be self-contained and should not rely on anything outside itself. By their nature, both formsets and publc variables break this rule. I understand the ramifications of what this means, and I am quite sure that you do too. Unfortunately, the average newbie probably doesn't. Your comment:
>
> Un-educated use of formsets and random use of public memory variables are a sure fire way to entertain major debugging issues.
>
> So to those very new to VFP be very careful in how you use formsets until you understand their use. Be careful with public memory variables and how they interact within your application.
>
> gets my rating. I believe that you state the case quite clearly - and in language that the average newbie will understand. If you don't know what you are doing when using formsets or public variables, you are going to get yourself in trouble.
>
> To the newbie:
>
> When I was in the Navy, the navigator would "recommend" course corrections to the Captain of the ship. The Captain does not have to accept that "recommendation" but you can be sure that without VERY good reason, the Captian will never reject the navigator's recommendation. Pete and Andy are like the navigator - you are the Captain. When you find yourself "on the rocks" you will begin to respect your navigator's recommendations.
>
> Ken
> You shall know the truth - and the truth shall set you free. (John 8:33)
You are telling about public memory variables are also not a good choice for new one then the persons who swithed from FPD26 to VFP9 what they do ?
What is the alternative of public memory variables ?