DELETE
DELETE A, idx [, count]
Deletes count
elements at position idx
of
array A
.
Example 1: Delete element at position 2
1, 2, 3, 4, 5]
a = [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
1, 2, 3, 4, 5]
b = [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
2048.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
filemanager.bas
form demo.bas
hangman v2.bas
hangman.bas
heap.bas
insert delete test.bas
klotski_solver.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
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
If there is insufficient information on this page and you wish learn more about DELETE,
please send an email to smallbasic@gmail.com. You can help to improve information about
DELETE by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.