Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Substring/Run-BASIC/substring.basic
Normal file
8
Task/Substring/Run-BASIC/substring.basic
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
n = 2
|
||||
m = 3
|
||||
s$ = "abcd"
|
||||
a$ = mid$(a$,n,m) ' starting from n characters in and of m length
|
||||
a$ = mid$(a$,n) ' starting from n characters in, up to the end of the string
|
||||
a$ = Print mid$(a$,1,(len(a$)-1)) ' whole string minus last character
|
||||
a$ = mid$(a$,instr(a$,s$,1),m) ' starting from a known character within the string and of m length
|
||||
a$ = mid$(a$,instr(a$,s$,1), m) ' starting from a known substring within the string and of m length.
|
||||
Loading…
Add table
Add a link
Reference in a new issue