StrGetElement
- Last UpdatedOct 29, 2026
- 1 minute read
Gets a specific element from a string source that contains a series of elements separated by a delimiter character.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
StrGetElement |
String |
Synchronous |
Yes |
Supported |
Supported |
Supported |
Supported |
Supported |
Syntax
StrGetElement(strSource, strDelimiter, numElementNumber)
strSource
The source string.
strDelimiter
Char used as delimiter between the elements in strSource.
numElementNumber
Number of the element which will be returned by the function. The first element has the number 1. The second element has the number 2, and so forth.
Returned value
Returns the element (string value) retrieved from strSource.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
StrGetElement("a|b|c", "|", 2) // returned value = "b" |
|
Tag |
StrGetElement("a,b,c", ",", 3) // returned value = "c" |