September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
10
Task/Substring/Gambas/substring.gambas
Normal file
10
Task/Substring/Gambas/substring.gambas
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Public Sub Main()
|
||||
Dim sString As String = "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"
|
||||
|
||||
Print Mid(sString, 11, 5) 'Starting from n characters in and of m length
|
||||
Print Mid(sString, 17) 'Starting from n characters in, up to the end of the string
|
||||
Print Left(sString, -1) 'Whole string minus last character
|
||||
Print Mid(sString, InStr(sString, "B"), 9) 'Starting from a known character within the string and of m length
|
||||
Print Mid(sString, InStr(sString, "OVER"), 8) 'Starting from a known substring within the string and of m length
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue