Can anyone explain this bizarre behavior?
The following throws a syntax error:
FOR EACH loControl IN this.parent.Controls
IF loControl.ReadOnly
ENDIF
NEXT
So does this:
#DEFINE READONLY -1
FOR EACH loControl IN this.parent.Controls
IF loControl.ReadOnly
ENDIF
NEXT
But this works just fine:
LOCAL lcReadOnly
lcReadOnly = "ReadOnly"
FOR EACH loControl IN this.parent.Controls
IF loControl.&lcReadOnly
ENDIF
NEXT
Ray Roper
Ray Roper