Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
14
Task/Substring/Microsoft-Small-Basic/substring.basic
Normal file
14
Task/Substring/Microsoft-Small-Basic/substring.basic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
string = "Microsoft Small Basic"
|
||||
n = 3
|
||||
m = 7
|
||||
|
||||
' starting from n haracters in and of m length
|
||||
TextWindow.WriteLine(Text.GetSubText(string, n, m))
|
||||
' starting from n characters in, up to the end of the string
|
||||
TextWindow.WriteLine(Text.GetSubTextToEnd(string, n))
|
||||
' whole string minus the last character
|
||||
TextWindow.WriteLine(Text.GetSubText(string, 1, Text.GetLength(string) - 1))
|
||||
' starting from a known character within the string and of m length
|
||||
TextWindow.WriteLine(Text.GetSubText(string, Text.GetIndexOf(string, "a"), m))
|
||||
' starting from a known substring within the string and of m length
|
||||
TextWindow.WriteLine(Text.GetSubText(string, Text.GetIndexOf(string, "Small"), m))
|
||||
Loading…
Add table
Add a link
Reference in a new issue