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

Edit History

TRIM

r = TRIM(s)

Home > Reference > String

Removes all leading and trailing white-space from string s.

Example

s = "   test   "
t = trim(s)
print "->" + s + "<-"
print "->" + t + "<-"

' Output:
' ->    test    <-
' ->test<-
Code samples using TRIM
agendus.bas   analog clock.bas   blackbox.bas   Blackbox.bas   clock.bas   clock.bas   CSV_Viewer.bas   duckduckgo.bas   Punc pal test.bas   radish.bas   shuffleboard.bas   sokoban.bas   sokoban.bas   sokoban.bas   sudoku-solver.bas   TinyBASIC.bas   water.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 Mon, 4 Sep 2023 16:12:47 +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.