Consultor Eletrônico



Kbase P14607: Error assigning temp-table:handle to a Widget-Handle
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/7/2007
Status: Unverified

FACT(s) (Environment):

Progress 9.1x

SYMPTOM(s):

Error assigning temp-table:handle to a Widget-Handle

** Unknown Field or Variable name - <field-name>. (201)

Following example code gives error message when compiling:

DEFINE VARIABLE tth AS WIDGET-HANDLE.
DEFINE TEMP-TABLE tmptblx LIKE customer.
tth = tmptblx:HANDLE.

CAUSE:

Bug# 20000830-026

CAUSE:

For object other than field-level widgets and the system handles, referencing the object by it's name requires the name to be qualified by the object type. This was not clearly documented.

FIX:

Change the following line: "tth = tmptblx:HANDLE" to

tth = TEMP-TABLE tmptblx:HANDLE

or

tth = BUFFER tmptblx:HANDLE

Depending on the need to access the temp-table object or it's default buffer.


In OpenEdge 10.1B The documentation was updated to better reflect this behavior.