>And this is the point to this discussion: whatever you do, explicitly declare all your variables using LOCAL, PRIVATE or PUBLIC (why and when to use each is a different thread :)).
>
Vlad,
No need to defend your point youa re correct in saying that variables should be declared. WEhere I am disagreeing with you is in the statement that a variable created wihtout being declared is anything but private, note I said created. The problem in VFP is that we can create a variable without declaring it first. The assignment operators (= and STORE) will create a variable if one doesn;t exist, if one does exist it will use that one. The scope of a variable created by the = or STORE command is private in scope, it is not almost private or sort of private, it is private.