Consultor Eletrônico



Kbase P21821: FRAME-FIELD returns an unexpected value in a CHOOSE trigger
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

FACT(s) (Environment):

Progress 8.x
Progress 9.x

SYMPTOM(s):

FRAME-FIELD returns an unexpected value.

Application uses NO-FOCUS buttons.

In the CHOOSE trigger for the NO-FOCUS button, FRAME-FIELD is not the expected value.

FIX:

FRAME-FIELD is an obsolete function and may not work properly with event-driven programming.

The best option is to use the FOCUS handle, in particular FOCUS:NAME if the same functionality as FRAME-FIELD is required. The FOCUS handle can provide alternatives for other v6-style functions, for example:

V6 style FOCUS handle
----------- ---------------
FRAME-FIELD FOCUS:NAME
FRAME-DB FOCUS:DBNAME
FRAME-FILE FOCUS:TABLE
FRAME-INDEX FOCUS:INDEX

Please note that for NO-FOCUS buttons, the FOCUS handle points to the widget where the cursor was in before the user clicked on the button, even inside a CHOOSE trigger (in CHOOSE triggers, the FOCUS handle usually returns the same as SELF).