D
dbeavon
Guest
Are we sure it is a bug? OE's OO classes have a number of oddities in the way that various data types are scoped. It would be nice if the scope of some things like temp-tables and, in this case, buffers would be limited to the context of a method. Unfortunately that is not the way classes work. I'm told it is for legacy reasons. The scope of your buffers and temp tables is at the class level, like an instance member. For example, I've often run into issues where a buffer will be moved with FIND in one method call, and then another nested method call will move the buffer again, so that when control returns to the outer method, the buffer is either lost or not on the same record as it was when the inner method was started. Because buffers have class-level scopes instead of method-level scopes, it is possible that this behavior is by design. The only way the compiler could easily tell that you didn't intend to actually use the customer buffer is if record buffers were scoped at the method level.
Continue reading...
Continue reading...