Mid()

语法

Result$ = Mid(String$, StartPosition [, Length])
概要
Extracts a string of specified length from the given string.

参数

String$ The string to use.
StartPosition Specifies the character position to start the extracting. The first character position is 1.
Length (optional) Specifies how many characters needs to be extracted. If this parameter is omitted, characters are extracted until the end of string.

返回值

A new string holding the extracted characters.

示例

  Debug Mid("Hello", 2) ; Will display "ello"
  Debug Mid("Hello", 2, 1) ; Will display "e"

已支持操作系统

所有

<- Len() - String Index - RSet() ->