PRB: Report Writer Rounds Numeric ValuesID: Q128892 The information in this article applies to:
SYMPTOMSThe Report Writer rounds numeric values when the field on the report is physically smaller than the original size of the field.
CAUSEWhen the field size is not too small (where the field cannot hold the size of the numeric value) but the field is not large enough to hold the complete value, the Report Writer rounds the value.
RESOLUTION1. Increase the physical size of the field on the report. 2. Leave the field the original size created by the Report Writer, but 3. Use the "TOP -- FIELD CAN STRETCH" option. This will cause the number to
STATUSThis behavior is by design.
MORE INFORMATIONIn the Report Writer, if a field is too small to contain a given value, the field will contain asterisks to indicate numeric overflow. However, before this point is reached, you can decrease the size of the field and the Report Writer will round the number to fit it into the smaller field.
Steps to Reproduce Behavior1. In FoxPro, create a new report. 2. In the Report Writer, Open the Customer table. 3. Add the ytdpurch field to the report, and set the font to Courier New, 4. Add a second ytdpurch field next to the first. Resize this field so that
5. Add a third ytdpurch field next to the second. Resize this field so that
6. Perform a Page Preview, and observe these results:
NOTE: If the second field has a "TOP--FIELD CAN STRETCH" attribute, you'll
be able to see full value, but it will be wrapped.
Additional reference words: FoxWin 2.60a Report Writer round asterisk KBCategory: kbtool kbprb KBSubcategory: FxtoolRwriter |
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |