Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Substring/FreeBASIC/substring.basic
Normal file
12
Task/Substring/FreeBASIC/substring.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Dim s As String = "123456789"
|
||||
Dim As Integer n = 3, m = 4
|
||||
Print Mid(s, n, m)
|
||||
Print Mid(s, n)
|
||||
Print Left(s, Len(s) - 1)
|
||||
'start from "5" say
|
||||
Print Mid(s, Instr(s, "5"), m)
|
||||
' start from "12" say
|
||||
Print Mid(s, Instr(s, "12"), m)
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue