Kbase P94993: Dynamic FILL-IN widget FORMAT attribute reverts to the default "X(8)".
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/27/2004 |
|
Status: Unverified
SYMPTOM(s):
Dynamic FILL-IN widget FORMAT attribute seems to revert to the default "X(8)".
Following code reports the FILL-IN FORMAT attribute to be X(8) although it is set to X(12) in the CREATE FILL-IN statement.
DEFINE VARIABLE hfillin AS WIDGET-HANDLE.
CREATE FILL-IN hfillin
ASSIGN
FRAME = FRAME {&FRAME-NAME}:HANDLE
FORMAT = "X(12)"
DATA-TYPE = "CHARACTER"
NAME = "fillinname"
WIDTH = 12
HEIGHT = 1
ROW = 5.
MESSAGE hfillin:FORMAT
VIEW-AS ALERT-BOX INFO BUTTONS OK.
CAUSE:
Listing the DATA-TYPE attribute of the FILL-IN after its FORMAT attribute in the CREATE FILL-IN statement causes the FILL-IN FORMAT attribute to revert to the default FORMAT of specified DATA-TYPE.
FIX:
To define a non default FILL-IN FORMAT in the CREATE FILL-IN statement, assign the DATA-TYPE attribute before the FORMAT attribute.