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

Edit History

LEFT

ls = LEFT (s [,n])

Home > Reference > String

Returns the n number of leftmost chars of string s as string ls. If n is not specified then n = 1.

Example

s = "abcdef"
print LEFT(s)      ' Output: a
print LEFT(s, 3)   ' Output: abc
Code samples using LEFT
000 hello.bas   002 numeric variables.bas   006 arrays+.bas   2048.bas   3d_torus.bas   3dtorus.bas   7gables.bas   agendus.bas   anomail.bas   another look at trig functions.bas   arc_ui.bas   betrayal: crows ii.bas   bezier_pen.bas   blackbox.bas   Blackbox.bas   blackjack.bas   BlackJack.bas   block.bas   bolmo.bas   btn 21.bas   calc.bas   checkers.bas   chess.bas   conrec-sb-v01.bas   coordplot.bas   crow.bas   dia de una fecha.bas   dmsareaplot.bas   dogstar5.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 Thu, 27 Apr 2023 14:23:01 +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.