Consultor Eletrônico



Kbase P124224: 4GL: Error 244 making a free reference to a buffer outside its DO FOR block.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/06/2007
Status: Unverified

FACT(s) (Environment):

All Supported Operating Systems

SYMPTOM(s):

4GL: Error 244 making a free reference to a buffer outside its DO FOR block.

** Reference to table <table> conflicts with block statement reference. (244)

** Could not understand line 6. (196)

** Reference to table Customer conflicts with block statement reference. (244)

Executing or compiling code similar to:
DO:
DO FOR customer:
FIND FIRST customer.
DISPLAY custnum name.
END.
FIND LAST customer.
END.

CAUSE:

You cannot make a free reference to a buffer outside its DO FOR block.

FIX:

Use another DO FOR to find the last customer. For example:
DO:
DO FOR customer:
FIND FIRST customer.
DISPLAY custnum name.
END.
DO FOR Customer:
FIND LAST customer.
MESSAGE NAME
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
END.