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

Edit History

MID

r = MID (s, start [,length])

Home > Reference > String

Returns the substring of string s starting from the position start with length length. If the length parameter is omitted, MID returns the whole string from the position start.

Example

s = "abcd"
print MID(s, 3)         ' Output: cd
print MID(s, 3, 1)      ' Output: c
Code samples using MID
3d_torus.bas   3dtorus.bas   7gables.bas   arc_ui.bas   ascii 3d.bas   base64.bas   betrayal: crows ii.bas   biorythms.bas   block.bas   bulls and cows.bas   calc.bas   Capitol pal test.bas   chess.bas   ciretose.bas   coordplot.bas   crgb.bas   dia de una fecha.bas   dmsareaplot.bas   dogstar5.bas   easter_mallen.bas   Eliza.bas   eliza.bas   esoteric.bas   evdemo.bas   fibanacci3.bas   g1 Life.bas   g2 Life.bas   g3 Life.bas   g4 Life.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 Tue, 6 Jun 2023 23:18:23 +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.