Microsoft KB Archive/40886

From BetaArchive Wiki
Knowledge Base


PUT Statement Correction, Page 342 QB Language Reference

Article ID: 40886

Article Last Modified on 11/21/2006

This article was previously published under Q40886

SUMMARY

Page 342 of the "Microsoft QuickBasic: Basic Language Reference" manual for Versions 4.00 and 4.00b and the "Microsoft Basic 6.0 Compiler: Basic Language Reference" manual for Versions 6.00 and 6.00b, ("PUT Statement - File I/O") incorrectly states the following:

...characters in the string's value. For example, the following two statements write 15 bytes to file number 1:

    VarString$=STRING$ (15, "X")
    GET #1,,VarString$
                    

The GET should be changed to PUT as follows:

    VarString$=STRING$ (15, "X")
    PUT #1,,VarString$
                

This documentation error was corrected in the QuickBasic Version 4.50 QB Advisor on-line Help system and in the "Microsoft QuickBasic 4.5: Basic Language Reference" manual for Version 4.50 and in the "Microsoft Basic 7.0: Language Reference" manual for Microsoft Basic PDS Version 7.00 for MS-DOS and MS OS/2.


Additional query words: QuickBas BasicCom

Keywords: KB40886