Kbase P124768: OpenEdge Architect reports errors 4027 and 2054 on the wrong line.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/30/2010 |
|
Status: Unverified
SYMPTOM(s):
OpenEdge Architect reports errors 4027 and 2054 on the wrong line.
**Cannot fit <widget name> with <at/colon/to> within FRAME <frame>. (4027)
Ignoring position info for <widget name> (2054)
OpenEdge Architect reports an error on the last line of the procedure file. Although this is not the line where the widget within the frame is defined.
FACT(s) (Environment):
Windows
OpenEdge 10.1B
OpenEdge Category: Language (4GL/ABL)
CAUSE:
This is expected behavior. The Architect is behaving exactly the same as the Procedure Editor in this respect.
Also, this is not a syntax error, but is more a compiler warning. It does not prevent compilation, as the 2054 error indicates that the positional information in the frame definition has been ignored.
As with the procedure editor, after displaying the 4027 and 2054 errors, the code will run in the Architect but the widgets will be adjusted to fit in the frame. The fact that there is an indicator at the end of the procedure simply highlights the fact that there is a problem with the code.
FIX:
1. Ignore the warning and let the AVM reposition the colon as it sees fit.
2. Modify the definition of the frame to eliminate cause of the warning.
3. Set the DefaultFont in the Startup section of the session .ini file or the HKEY_CURRENT_USER\Software\PSC\PROGRESS\10.2B\Startup registry key to a fixed font, like the Courier New, size=8.