Basic Products Can Create and Use Non-Standard File NamesLast reviewed: June 21, 1995Article ID: Q94783 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0- Microsoft Visual Basic programming system for Windows, version 1.0 - The Standard and Professional Editions of Microsoft Visual Basic for MS-DOS, version 1.0- Microsoft Basic Professional Development System (PDS) for MS-DOS, version 7.1- Microsoft QuickBASIC for MS-DOS, version 4.5
SUMMARYMicrosoft Visual Basic and other Basic products can create and use non-standard MS-DOS file names. For example, a file name with an embedded space is a non-standard file name. However, Microsoft doesn't recommend that you use non-standard file names because they can cause problems with other software.
MORE INFORMATIONAccording to the MS-DOS documentation, file names must:
The following example creates a file giving it a name that contains a space. Then it writes data to the file, reopens it, and prints the data on the screen:
OPEN "A B" FOR OUTPUT AS #1 'There is a space between A and B PRINT #1, "HELLO THERE" CLOSE #1 OPEN "A B" FOR INPUT AS #1 INPUT #1, A$ PRINT A$ CLOSE #1 |
Additional reference words: 1.00 2.00 3.00 4.50 7.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |