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

Edit History

DELETE

DELETE A, idx [, count]

Home > Reference > Data

Deletes count elements at position idx of array A.

Example 1: Delete element at position 2

a = [1, 2, 3, 4, 5]
print a                 ' Output: [1,2,3,4,5]
delete a, 2
print a                 ' Output: [1,2,4,5]

Example 2: Delete two elements starting at position 2

b = [1, 2, 3, 4, 5]
print b                 ' Output: [1,2,3,4,5]
delete b, 2, 2
print b                 ' Output: [1,2,5]
Code samples using DELETE
006 arrays+.bas   2048.bas   checkers.bas   chess.bas   filemanager.bas   form demo.bas   hangman v2.bas   hangman.bas   heap.bas   insert delete test.bas   klotski_solver.bas   lsystem.bas   maze generator.bas   mine sweeper v4sb.bas   nim.bas   palm_cli.bas   palmcli.bas   pen pad.bas   shooter.bas   snake.bas   sokoban.bas   sokoban.bas   sokoban.bas   space shooter.bas   sudoku-solver.bas   TinyBASIC.bas  
Data
APPEND   ARRAY   DATA   DELETE   DIM   EMPTY   ERASE   INSERT   ISARRAY   ISDIR   ISFILE   ISLINK   ISMAP   ISNUMBER   ISSTRING   LBOUND   LEN   READ   REDIM   RESTORE   SEARCH   SORT   SWAP   UBOUND  
This page was last edited on Thu, 19 Oct 2023 15:43:55 +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.