TSC AUTO ID Technology Co., Ltd. 155 Copyright 2013 All Rights Reserved.
MID$( )
Description
This function retrieves the specified number of characters down from the mth character of a string.
Syntax
MID$(string,m,n)
The string to be processed
The beginning of m
th
characters in the string
1 <= m <= string length
The number of characters to return
Example
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
E$=MID$(A$,11,10)
CLS
TEXT 10,10,"3",0,1,1,A$
TEXT 10,200,"3",0,1,1,"10 MIDDLE CHARS: "+E$
PRINT 1
EOP
DEMO
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), STR$(), VAL()