Kbase 21606: Error: (4028) Can Be Generated Using the Format Phrase
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/7/2004 |
|
Status: Verified
SYMPTOM(s):
**<widget name> will not fit in FRAME <frame name> in PROGRAM . (4028)
Error generated when using the FORMAT phrase
CAUSE:
Because some space is taken up by graphics on the right and left side edges of the Progress window, the width of a default frame or default window must be at least 2 or 3 characters wider than the widget it contains depending on the font. For example, running the code below will generate the error.
DEF VAR cText AS CHARACTER.
DISPLAY cText FORMAT "x(125)".
FIX:
Use the WIDTH option, extending the width beyond that of the Format specification. In this particular case the width needs to be at least 3 greater than the Format. This modified code example will execute without error.
DEF VAR cText AS CHARACTER.
DISPLAY cText FORMAT "x(125)" WITH WIDTH 128.