"Invalid Function Call" Listing Window of File Saved Protected (31938)



The information in this article applies to:

  • Microsoft QuickBASIC 1.0
  • Microsoft BASIC Interpreter for Apple Macintosh 1.0
  • Microsoft BASIC Interpreter for Apple Macintosh 1.01
  • Microsoft BASIC Interpreter for Apple Macintosh 2.0
  • Microsoft BASIC Interpreter for Apple Macintosh 2.1
  • Microsoft BASIC Interpreter for Apple Macintosh 3.0

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 "Invalid function call" 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 "Illegal function call" 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.

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:KB31938