The information in this article applies to:
SYMPTOMS
Loading a file into Visual Basic version 1.0 for MS-DOS causes "Type
Mismatch" or "Illegal Function Call" and possibly other compile-time and
run-time errors if the file was originally saved in Microsoft Basic
Professional Development System (PDS) version 7.0 binary format.
CAUSE
Files saved with the binary format from Basic PDS version 7.0 can be loaded
into Visual Basic version 1.0 for MS-DOS, but Function or Sub procedure
parameters that have the type STRING specification character (for example,
MyString(A$)) are incorrectly converted to a type LONG (for example,
MyString(A#)) when loaded into Visual Basic version 1.0 for MS-DOS. This is
also true for functions defined to return the STRING type; for example,
Function A$() becomes Function A#().
RESOLUTIONTo solve this problem, load the program file into Basic PDS version 7.0. Then save the program with the 'Text - Readable by other programs' format selected. Programs saved in the text format load correctly into Visual Basic version 1.0 for MS-DOS. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
The Microsoft Basic Professional Development System (PDS) version 7.0
supports a Binary Fast Load and Save format option under the FILE : SAVE
and FILE : SAVE AS menu options. When upgrading from PDS version 7.00 to
Microsoft Visual Basic version 1.0 for MS-DOS, programs that had been
saved with the Binary Fast Load and Save format option cause an incorrect
change in the type for string parameters and functions defined to return a
string if either is declared using the STRING type specification ($).
Steps To Reproduce Problem
Additional query words: VBmsdos BasicCom buglist1.00 B_BasicCom 1.00 7.00
Keywords : |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |