>Craig
>
>>An excellent practice. You should also declare you application object as PRIVATE in your MAIN.PRG.
>
>Why should I use private? at the moment I have it as a Public.
>
>Kev
The main reason I can think of is this:
If you ever need to call one app from another app and they're both built on the same framework, they will probably have the same variable name for the application (e.g., Codebook uses
goApp
), the 2nd app will stomp on the first app's variable if it's Public.
If it's Private, it won't.
Insanity: Doing the same thing over and over and expecting different results.