StrSetElement

Sets a specific element in a string source.

Function Group Execution Windows Embedded Thin Client Mobile Access
StrSetElement String Synchronous Supported Supported Supported Supported

Syntax

  StrSetElement( strSource, strDelimiter, numElementNumber, strValue )  
strSource
The source string.
strDelimiter
Char used as delimiter between the elements.
numElementNumber
Number of the element where the string value will be written by the function. The first element has the number 1. The second element has the number 2 and so forth.
strValue
String value that will be written to the numElementNumber of the strSource string tag.

Returned value

Returns the string value updated with the strValue.

Examples

Tag Name Expression
StringTag StrSetElement( strSource, “|”, 2, “abcd” )
StringTag StrSetElement( strSource, “,”, 3, “defg” )

StrSetElement