>
It's impossible in VFP to create a variable that doesn't have data type assigned to it. If data type is not specified the Logical data type is used as default.>
>Not so. If you explicitly declare a variable as LOCAL, this is true. But if you do not explivitly decalre the cariable as LOCAL, VFP scopes it a PRIVATE by default. A private variable is not assigned any data type by default.
A note for those who are still unclear on the subject:
A private variable is not assigned any data type by default... because Private declaration doesn't create it, it just hides any already existing variable defined anywhere up the call stack, so if such a variable is created, it will not touch the one defined up there. But the moment it's created, it's created by this or that type of assignment (store, =, scatter) and then it'll have a type. It's usually tricky for newcomers to Fox, to understand that while Public and Local create a variable, Private doesn't. It's so for historical reasons, and stayed so for compatibility's sake (or else all the code which checked for existence of a private variable would fail).