In that case, why doesn't this work:
Code:
c = "hello".
DEFINE VARIABLE c AS CHARACTER NO-UNDO.
At the point I'm trying to reference c, it hasn't been declared/defined. It obviously matters to the compiler where these definitions take place in the same block of code.
So if the compiler takes this into account, my earlier example (post #9) should work the way I want it to. Or at least, I should be able to find a way of knowing whether the variable has been defined at any given point.
Seems to me like yet another Progress inconsistency...