FIX: Form Wizard Ignores Design Area LimitationID: Q163784 The information in this article applies to:
SYMPTOMSWhen using the Form Wizard to design a form for a table that contains a particular mixture of fields of different data types and lengths, the Form Wizard may ignore the limits of the design area, producing a form that does not show the last few fields or the navigation buttons at the bottom of the form. When the design area is 640x480 pixels and the horizontal and vertical spacing are both 12 pixels, the form will display 17 rows of fields and labels, but any additional fields, up to enough for 22 rows, will not be visible in the design area. In other cases, the Form Wizard will issue a message that there are too many fields and that there are three alternative workarounds. The "Add Pages" alternative is already checked, but is ignored by the Wizard. There are two alternative, incorrect results. One shows the same 17 rows of fields and labels, but will not show the additional fields or navigation buttons. The resulting page of the other alternative shows 10 fields and the navigation buttons. This usually occurs when the fields have captions. NOTE: Not all installations of Visual FoxPro 5.0 will exhibit any form of this behavior. Multiple tests made on Windows 95 and Windows NT 4.0 exposed the problem but other tests on similarly loaded systems did not.
RESOLUTIONIn either of the above cases, the simplest workaround is to add several dummy fields to the table structure. The number will vary depending on the particular table and may run as high as 22 additional fields. After the form is designed, those fields may be deleted from the pages that hold them. In some cases, the extra fields can even be deleted from the table structure, and the Form Wizard will operate correctly.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 6.0.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a database named "Pages.dbc." 2. To the .dbc, add a table named "Pages.dbf" that contains 18 3. Select Options from the Tools menu. In the Options dialog box, set the
4. Ensure that the Pages.dbf is in the currently-selected work area.
5. From the Tools menu, select Wizards, and then select Form. 6. In the Wizard Selection dialog box, select the default, Form Wizard, and 7. Select all fields from the Pages table.
8. Choose "Finish." 9. In step 4, note that the "Add Pages" checkbox is checked. Select the 10. The Form Wizard will build a form with only 17 fields and their names
11. Close the form and modify the database by issuing the following
12. Save the table definition.
13. Build a new form with the Form Wizard, using all the fields of 14. Observe the form.
15. Add 8 more fields with the same characteristics and build a new form. 16. Observe the form. 17. Add 4 more fields with the same characteristics and build a new form. 18. Observe the form. 19. Modify the table by removing the last 4 rows, then build a new form. 20. The new form should show pages even though the form you built in Additional query words: kbvfp600fix
|
Last Reviewed: November 1, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |