Suppose you have a PARENT form with a CHILD table. In both PARENT and CHILD, you declare a window variable called hSqlHandler. You get this error :
Code: Select all
Error: hSqlInsert is defined by more than one form, dialog, or table window. Must qualify the reference.
For example suppose you have a this configureation
Code: Select all
Module M (globale variable) : V
Class C (class variable) : V
Method M (local variable) : V.
Object O (instance variable) : V
For example :
if you use V inside your method M, it looks first if V is in the local variables, if not, it looks if V is an instance variable of object O, if not, it checks if it's a class variable and so on until it reaches the global scope.
In TD, it just can't compile.
Any comments ?