Consultor Eletrônico



Kbase P38604: adm2/visual.p/setEnabledObjHdls has input param as HANDLE
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/22/2003
Status: Unverified

SYMPTOM(s):

adm2/visual.p/setEnabledObjHdls function has input param data type of HANDLE

CAUSE:

Known problem, development aware. Indeed, the EnabledObjHdls property is defined as CHARACTER in visprop.i. setEnabledObjHdls will not be able to manage a list of handles (see plural in the function name) if the datatype of input param pcHdls is HANDLE

Strangely, at the moment, the function works with a single item, because the 4GL can convert it to char on the fly thanks to the use of BUFFER-FIELD():BUFFER-VALUE (use of the {set} pseudo syntax)

Same as the little program bellow which does not fail:
DEF TEMP-TABLE t
FIELD c AS CHARACTER.

CREATE t.
BUFFER t:BUFFER-FIELD("c"):BUFFER-VALUE = SESSION:FIRST-CHILD.

MESSAGE t.c SKIP "You see, it does not fail and converts handle to char"
VIEW-AS ALERT-BOX INFO BUTTONS OK.

CAUSE:

Bug# 20030822-013

FIX:

Change datatype of pcHdls in adm2/visual.p/setEnabledObjHdls to CHARACTER