| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
String |
|
See also |
STRPARTS, STRFIRSTPART, STRLASTPART, STRSTRIPFIRSTPART, STRSTRIPLASTPART, STRWHICHPART |
Retrieves a specific subitem/substring in a given source string by using the given separation string. If the specified item number exceeds the number of items in the source string then an empty string is returned.
STRPART <VariableName>, <String>, <Part>[, <SepStr>]
|
Part |
Description | |
| <VariableName> | Name of the script variable where to store the substring item. | |
| <String> | Source string. | |
| <Part> | Index of the substring item to be retrieved. If greater than found total number of items then an empty string will be the result of STRPART. | |
| <SepStr> | Optional substring that separates the different items. If missing the program tries to find a fitting character like |, /, \, ., ,, ; (the first of these that can be found somewhere in the string is assumed to be the separation character). | |
|
| ||
STRPART MyItem, "mwildam@may.co.at;useeliger@may.co.at", 2, ";"
;Result in "MyItem" will be "useeliger@may.co.at".