Mid Function

  • Updated

The Mid function returns a substring of a string.

Syntax 1

 

The Mid function returns a substring of a string.

 

Mid(string, start)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

start

Integer - Starting position of the substring.

Syntax 2

 

The Mid function returns a substring of a string.

 

Mid(string, start, numChars)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

start

Integer - Starting position of the substring.

 

 

numChars

Integer - Length of the substring.

Remarks

  • Example: Mid("abcdefg", 2, 3) returns "cde".
  • Example: Mid("abcdefg", 2) returns "cdefg".

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.