Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
16
Task/Substring/VBScript/substring.vb
Normal file
16
Task/Substring/VBScript/substring.vb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
s = "rosettacode.org"
|
||||
|
||||
'starting from n characters in and of m length
|
||||
WScript.StdOut.WriteLine Mid(s,8,4)
|
||||
|
||||
'starting from n characters in, up to the end of the string
|
||||
WScript.StdOut.WriteLine Mid(s,8,Len(s)-7)
|
||||
|
||||
'whole string minus last character
|
||||
WScript.StdOut.WriteLine Mid(s,1,Len(s)-1)
|
||||
|
||||
'starting from a known character within the string and of m length
|
||||
WScript.StdOut.WriteLine Mid(s,InStr(1,s,"c"),4)
|
||||
|
||||
'starting from a known substring within the string and of m length
|
||||
WScript.StdOut.WriteLine Mid(s,InStr(1,s,"ose"),6)
|
||||
Loading…
Add table
Add a link
Reference in a new issue