Kbase 17293: Explanation of errors 462 and 4132
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  31/12/2004 |
|
Status: Verified
FACT(s) (Environment):
Windows 32 Intel
Windows NT 32 Intel/Windows 2000
SYMPTOM(s):
** Invalid character unit value <value>, Changed to 320. (4132)
** A frame cannot have a width greater than 320. (462)
CAUSE:
If the horizontal resolution is increased such that the maximum frame width is surpassed, error number 4132 will result. This error can even occur when running the Procedure Editor, since it is, itself a Progress application. In the error text, the number in <value> indicates the width (rounded) that you have attempted to use for the frame width.
FIX:
Session:width-pixels divided by Session:pixels-per-column must be less than 320 in order to avoid error (4132).
The value of Session:width-chars will depend upon local settings, however, the following table provides Session:width-chars at Progress default settings as a point of reference.
-- Version 8.1
Screen Resolution
640x480 Session:width-chars = 91.43
800x600 Session:width-chars = 114.29
1024x768 Session:width-chars = 146.29
1280x1024 Session:width-chars = 182.86
-- Version 8.2 and above
Screen Resolution
640x480 Session:width-chars = 128.00
800x600 Session:width-chars = 160.00
1024x768 Session:width-chars = 204.80
1152x864 Session:width-chars = 230.40
1280x1024 Session:width-chars = 256.00
1600x1200 Session:width-chars = 320.00
In Progress, column and row values are currently stored as 16-bit signed values. The largest column value that can be handled is approximately 320 because column values are stored in PPU (Progress Portable Units), which are divided into hundreds. For example, the column value 203 is stored as 20300 PPU. The maximum PPU value which can be stored in 16 bits is 32767 PPU. This was simply limited to 320 columns (32000 PPU).
In current releases, developers must continue to observe the 320 character frame limit. Using pixels instead of rows and columns may provide desired functionality in some cases.