Contents  Index  
──────────────────────────────────────────────────────────────────────────────
Returns a string of a specified length made up of a repeating character.

STRING$(length%,{ascii-code% | stringexpression$})length%              The length of the string.
    ■ ascii-code%          The ASCII code of the repeating character.
    ■ stringexpression$    Any string expression. STRING$ fills the string
                           with the first character in stringexpression$.

Example:
    PRINT STRING$(5, "-");
    PRINT "Hello";
    PRINT STRING$(5, "-")

See Also    ASCII Character Codes
──────────────────────────────────────────────────────────────────────────────
 © Copyright Microsoft Corporation, 1987-1992. All rights reserved.
   Converted from qbasic.hlp with DosHelp/HelpConvert