Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

StringMid()

  • Last UpdatedJul 13, 2023
  • 1 minute read

Extracts a specific number of characters from a starting point within a string and returns the extracted character string as the result.

Category

String

Syntax

StringResult = StringMid( Text, StartChar, Chars );

Parameters

Text

Actual string or a string equipment.item to extract a range of characters.

StartChar

The position of the first character within the string to extract. Any number or an integer equipment.item.

Chars

The number of characters within the string to return. Any number or an integer equipment.item.

Remarks

This function is slightly different than the StringLeft() function and StringRight() function in that it allows you to specify both the start and end of the string that is to be extracted.

Examples

StringMid("The Furnace is Overheating",5,7); ' returns "Furnace";

StringMid("The Furnace is Overheating",13,3); ' returns "is ";

StringMid("The Furnace is Overheating",16,50); ' returns "Overheating"

See Also

StringASCII(), StringChar(), StringFromReal(), StringFromTime(), StringInString(), StringLeft(), StringLen(), StringLower(), StringReplace(), StringSpace(), StringTest(), StringToIntg(), StringToReal(), StringTrim(), StringUpper(), Text()

String Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in