MID$ function
Purpose: MID$ returns a substring of a string.
Syntax: SubStr$ = MID$(MainStr$, Start% [, Length%]) Parameters:
|
Remarks: It is the responsibility of the programmer to ensure that the receiving string is large enough to hold the string being returned from MID$.
Example 1 :
SubStr$ = MID$("abcdefg", 3, 4)
Result: SubStr$ will equal "cdef".
Example 2:
SubStr$ = MID$("abcdefg", 2)
Result:
SubStr$ will equal "bcdefg".
BCX Console Sample Programs using MID$ function.
S17.bas S23.bas S39.bas S55.bas S61.bas S84.bas S87.bas S110.bas