[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Recid shown blank in GUI client

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
The fill-ins are different widths because the rules for determining the default width of a fill-in take the data type into account. Numeric data types like DECIMAL and INTEGER use a fixed-width font. CHARACTER, RECIDs, and some others use a variable-width font. I don't know why RECIDs aren't considered to be numeric. In a variable-width font spaces are thinner than digits, while in a fixed-width font spaces and digits are the same width. The compiler makes sure that a numeric fill-in is wide enough to display the largest value which can be displayed by its format, but it calculates the width for non-numeric fill-ins (including RECID) using a formula which doesn't guarantee that the data will always be completely visible. In this case, the extra position in the format causes the right-justified data to get "clipped" off the end. It's there but you can't see it because it's beyond the right edge of the fill-in. If you want RECIDs to display the same way as numeric types, specify a fixed font for the fill-in. In your example, adding "FONT 2" after the format string fixes the issue.

Continue reading...
 
Status
Not open for further replies.
Back
Top