BUG: SaveAs Method Fails to Create SCX File from Runtime Form

Last reviewed: April 24, 1997
Article ID: Q163395
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a
  • Pro Edition of Microsoft Visual FoxPro for Mac, version 3.0

SYMPTOMS

If a Visual FoxPro executable program launched from the Windows Explorer or the Macintosh Finder runs a form that contains code to execute the SaveAs method of the form, the executable will not create the new form and no error message will be displayed. If the executable is launched in the Visual FoxPro environment, the SaveAs method works correctly.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a project. Add a new form to the project.

  2. Change the WindowType property of the form to 1-Modal.

  3. On the form, add two Command Buttons. In the Click event of the first Command Button, add the following code:

         RELEASE Thisform
    

  4. In the Click event of the second Command Button, enter this code:

         Thisform.SaveAs ('myform')
    

  5. Save the form.

  6. Build the project into an executable.

  7. Run the executable in the development environment. Click the Command Button that has the SaveAs method in it. It will create a new form named Myform.SCX.

  8. Run the same EXE from the Explorer. Click the button and note that Visual FoxPro acts busy for a brief moment, but does not create the form and does not display an error message.


Keywords : buglist3.00 buglist3.00b buglist5.00 FxtoolFormdes kbprg vfoxwin vfpbug5.0a kbbuglist
Version : 5.0a 3.0 3.0b 5.0
Platform : MACINTOSH WINDOWS
Issue type : kbbug


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: April 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.