FIX: Changing Decimal Separator Causes Load Errors for Form

Last reviewed: October 30, 1997
Article ID: Q94776
2.00 WINDOWS kbenv kbbuglist

The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.0
- Microsoft Visual Basic programming system for Windows, version 1.0

SYMPTOMS

If you change the decimal separator by choosing the International icon from the Windows Control Panel, you can get the error "Errors during load. Refer to ..." when loading a form that was saved as text.

STATUS

Microsoft has confirmed this to be a problem with Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.

MORE INFORMATION

From the Windows Control Panel, you can change the decimal separator for numbers by choosing the International icon. By changing the decimal separator, you can affect the way decimal numbers look when output by statements such as the PRINT method.

However, if you change the decimal separator, you may get the following error when you load a form that had was saved as text (the default): "Errors during load. Refer to" followed by the name of a log file that contains the error information.

When a form is saved as text, all information about the form is saved to the file, this includes all the properties that were changed from their default. Any properties that where written as a decimal number, such as the FontSize property, may not be recognized if you have changed the decimal separator.

Steps to Reproduce Problem

  1. Start the Windows Control Panel located, by default, in the Main group of the Windows Program Manager.

  2. Choose the International icon from the Control Panel to specify international settings.

  3. Choose the Change button next to Number Format.

  4. Change the decimal separator to a comma (,).

  5. Start Microsoft Visual Basic version 2.0.

  6. From the File menu, choose Open Project (Press ALT, F, O).

  7. Open the Calculator sample program. This is installed in the SAMPLES directory under the CALC subdirectory.

  8. From the Project Window, double-click CALC.FRM to load the form.

At this point, you should get the error "Errors during load. Refer to" followed by the name of a log file that contains the error information. Note that although the loading problem was corrected in Visual Basic version 3.0, the Calculator program is not designed ot accept a comma (,) in place of a decimal point. Using a comma causes a "Type mismatch" error.


Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
KBCategory: kbenv kbbuglist
KBSubcategory: EnvtDes
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.