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

AVEVA™ Plant SCADA

StrMid

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets characters from the middle of a string.

Syntax

StrMid(String, Offset, Characters)

String:

The source string.

Offset:

The offset in the string, commencing at 0.

Characters:

The number of characters to get, commencing at the offset.

Return Value

A string containing the number of characters from the offset.

StrLeft, StrLength, StrRight

Example

Variable=StrMid("ABCDEF",1,3);

! Sets Variable to "BCD".

Variable=StrMid("ABCDEF",4,1);

! Sets Variable to "E".

See Also

String Functions

Using the Caret Escape Sequence Character

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