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 | SPRINT

Edit History

SPRINT

SPRINT byref s; [USING…;] …

Home > Reference > String

Create a formated string and storing it to string s. SPRINT supports all features of PRINT. See PRINT for detailed information. USG can be used instead of USING.

Example

a = 1000
b = 2000

SPRINT s1; USING "a = #####.00  b = ##,###"; a; b
SPRINT s2; "a + b = "; a; " + "; b; " = "; a + b

print s2     ' Output a =  1000.00  b =  2,000
print s1     ' Output: a + b = 1000 + 2000 = 3000
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 Fri, 11 Aug 2023 14:13:46 +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.