|Liberty BASIC Help Online
MID$(string, index, [number])
This function permits the extraction of a sequence of characters from the string, string variable, or string expression string starting at index. [number] is optional. If number is not specified, then all the characters from index to the end of the string are returned. If number is specified, then only as many characters as number specifies will be returned, starting from index.
print mid$("greeting Earth creature", 10, 5)
string$ = "The quick brown fox jumped over the lazy dog"
for i = 1 to len(string$) step 5
print mid$(string$, i, 5)
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/