September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
9
Task/String-matching/Gambas/string-matching.gambas
Normal file
9
Task/String-matching/Gambas/string-matching.gambas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Public Sub Main()
|
||||
Dim sString1 As String = "Hello world"
|
||||
Dim sString2 As String = "Hello"
|
||||
|
||||
Print sString1 Begins Left(sString2, 5) 'Determine if the first string starts with second string
|
||||
If InStr(sString1, sString2) Then Print "True" Else Print "False" 'Determine if the first string contains the second string at any location
|
||||
Print sString1 Ends Left(sString2, 5) 'Determine if the first string ends with the second string
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue