Mid function – Multichannel Systems NeuroExplorer User Manual

Page 308

Advertising
background image

5.5.14.2. Mid Function

Mid Function


Returns the specified substring.

Syntax


string Mid(string, nstartchar, nchar)

Parameters

Parameter

Type

Description

string

string

String parameter.

nstartchar

double

1-based index of the start character.

nchar

double

Number of characters to select.

Returns


Returns the substring that starts at character nstartchar and contains nchar characters.

Comments


None

Usage

NexScript

sub = Mid("abcdefg", 2, 3)

% sub now is "cde"

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 306

Advertising