Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Mid - function of language VBScript

Description:
Returns a specified number of characters from a string.

For the purposes of PROMOTIC system, it is more usefull to use the method: Pm.StringSub.

Syntax:
Mid(string As String, start As Integer, [length As Integer]) As String
Calling:
s = Mid(string, start[, length])
Parameters:
string(String) String expression from which characters are returned. If string contains Null, then Null is returned.
start(Integer) Character position in string at which the part to be taken begins. If it is greater than the number of characters in string, then function returns a empty string (""). The first character has the position 1.
length[optional] (Integer) The number of characters to return. If omitted or if there are fewer than length characters in the text (including the character at start position), then all characters from the start position to the end of the string are returned.
Note:
To determine the number of characters in string, use the Len function.
Example:
s = Mid("VB Script is fun!", 4, 6) 's contains "Script"
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice