IT. Expert System.

VBS

Mid()


Description

The Mid() function returns a specified number of characters from a string.

Tip: Use the Len function to determine the number of characters in a string.

This function has the form:

Mid(string,start[,length])
Parameter Description
string (required) The string expression from which characters are returned
start (required) Specifies the starting position. If set to greater than the number of characters in string, it returns an empty string ("")
length (optional) The number of characters to return

Examples

The following examples show the basic use of this function:

Example 1

Return 1 character, starting at postion 1:

txt = "This is a beautiful day!"
Msgbox(Mid(txt,1,1))

This produces the following result:

T

Example 2

Return 15 characters, starting at postion 1:

txt = "This is a beautiful day!"
Msgbox(Mid(txt,1,15))

This produces the following result:

This is a beaut

Example 3

Return all characters, starting at postion 1:

txt = "This is a beautiful day!"
Msgbox(Mid(txt,1))

This produces the following result:

This is a beautiful day!

Example 4

Return all characters, starting at postion 12:

txt = "This is a beautiful day!"
Msgbox(Mid(txt,12))

This produces the following result:

eautiful day!

Miscellaneous Information

Supported in Version: 1.0


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 310 / 158675118. Delta: 0.02981 с