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

Edit History

RIGHTOF

r = RIGHTOF (s1, s2)

Home > Reference > String

Returns the right part of string s1 at the position of the first occurrence of string s2 in s1. If s2 does not occur in s1 RIGHTOF returns an empty string.

Example

s = "abcdef"

print rightof(s, "cd")  ' Output: ef
print rightof(s, "a")   ' Output: bcdef
print rightof(s, "f")   ' Output: 
print rightof(s, "xx")  ' Output: 
Code samples using RIGHTOF
dmsareareadmd.bas   irc-bot.bas   isodate.bas   navigation.bas   new bas.bas   palm_cli.bas   pdocview.bas   tabs2spaces.bas   TinyBASIC.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, 19 May 2025 20:44:43 +0930 | 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.