Steve Ellenoff wrote: > Is my mind playing tricks on me? I could have sworn I saw this error > msg in the past. > > I thought for sure if you declared a variable (public and private) > and then declared it again, you'd get an error msg, yet, testing just > now proved me wrong in vfp 6 and vfp9 (wanted to see if perhaps it > changed behavior between versions) > > So am I crazy or does anyone else recall seeing this? > > I've got lots of code in older apps that first check if a public or > private var exists, and if not, declares it, which according to my > testing today, is just silly, the code should just redeclare it. > >
I know I've seen this with DEFINEd constants. A quick test prg confirmed you're not crazy about seeing this error: http://mbsoftwaresolutions.com/images/declareerror.png It didn't bomb on the PRIVATE but did on the PUBLIC. -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

