Microsoft KB Archive/31938

= &quot;Invalid Function Call&quot; Listing Window of File Saved Protected =

Article ID: 31938

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 1.0
 * Microsoft BASIC Interpreter 1.0
 * Microsoft BASIC Interpreter 1.01 for Macintosh
 * Microsoft BASIC Interpreter 2.0
 * Microsoft BASIC Interpreter 2.1 for Macintosh
 * Microsoft BASIC Interpreter 3.0 for Macintosh

-



This article was previously published under Q31938



SUMMARY
If a program has been saved in the Protected file format, you cannot open a List window for that file. Protected files cannot be listed, edited, or compiled; they can only be run in the interpreter. QuickBASIC displays an &quot;Invalid function call&quot; error if you attempt to display the Listing window for a program that has been saved in Protected format. The BASIC interpreter Versions 2.x and 3.00 display an &quot;Illegal function call&quot; error.

A file is protected by saving it with the Protected option in the Save As... command in the File menu. The default format when saving files is Compressed. You MUST save a copy of the file under another name using the Text or Compressed format BEFORE saving the file as Protected if you wish to access the source code in the future.

This article applies to the interpreter in Microsoft QuickBASIC Version 1.00, and to Microsoft BASIC Interpreter Versions 1.00, 1.01, 2.00, 2.10, and 3.00 for Apple Macintosh.

Additional query words: MQuickB

Keywords: KB31938

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.