GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | STRING

Edit History

STRING

s = STRING ( count, {str | chr} )

Home > Reference > String

Creates a new string, which repeats the string str count times. If instead of a string a number chr is given, chr will be interpreted as an ASCII-code and the corresponding character will be repeated count times.

Example

print string(4, "A")        ' Output: AAAA
print string(4, "AB")       ' Output: ABABABAB
print string(4, 65)         ' Output: AAAA
Code samples using STRING
006 arrays+.bas   7gables.bas   B+B.bas   base64.bas   bb2fork smurf.bas   biorythms.bas   calc.bas   CSV_Viewer.bas   dmsareareadmd.bas   Eliza.bas   eliza.bas   esoteric.bas   Fifty50.bas   fiftyfifty v2.bas   form demo.bas   g1 Life.bas   g2 Life.bas   g3 Life.bas   g4 Life.bas   g5 Life.bas   g6 Life.bas   hangman v2.bas   hangman.bas   irc-bot.bas   klotski_solver.bas   mandelbrot explorer.bas   mastermind.bas   moonup.bas   My Song.bas  
String
ASC   BCS   BIN   CBS   CHOP   CHR   DISCLOSE   ENCLOSE   FORMAT   HEX   INSTR   JOIN   LCASE   LEFT   LEFTOF   LEFTOFLAST   LOWER   LTRIM   MID   OCT   REPLACE   RIGHT   RIGHTOF   RIGHTOFLAST   RINSTR   RTRIM   SINPUT   SPACE   SPC   SPLIT   SPRINT   SQUEEZE   STR   STRING   TRANSLATE   TRIM   UCASE   UPPER   VAL  
This page was last edited on Sun, 20 Aug 2023 16:59:18 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.