FIX: Syntax Error TIME$ to TIME$$ Loading Compressed 2.00 File (35326)






This article was previously published under Q35326

SYMPTOMS

QuickBasic mistakenly expands the TIME$ statement to TIME$$ when it loads source files that were saved in Microsoft Basic Interpreter version 2.00 Compressed format. For example, PRINT TIME$ becomes PRINT TIME$$ at load time. PRINT TIME$$ then gives a "Syntax Error" at run time. You may do either of the following to work around the problem:

  1. Save the program in Text format in the Microsoft Basic Interpreter versions 2.00, 2.10, or 3.00 before loading it into QuickBasic. -or-

  2. After loading it into QuickBasic, select Change from the Search menu and do a Find on TIME$$ and Replace it with TIME$. Resave.
Microsoft has confirmed this to be a bug in Microsoft QuickBasic version 1.00 for the Macintosh . This problem is corrected in QuickBasic version 1.00b.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: kbbug KB35326