Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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