| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
Other |
|
See also |
FOREACHFILE, FOREACHFOLDER, FOREACHLINEINFILE, WHILE, EXITLOOP |
Calls a subroutine once for every substring item in a given string by splitting the source string in substrings using the given separation character or string.
The subroutine can query the current substring with %PAR1%; %PAR2% contains the current index (starting with 1).
Use the EXITLOOP command to exit the loop from within the processed subroutine.
FOREACHIN <String>, <SubName>[, <SepStr>][, <SkipEmpty>]
|
Part |
Description | |
| <String> | Source string. | |
| <SubName> | Subroutine to call for each found substring item. See SUB for details on subroutines. | |
| <SepStr> | Optional separation character. If missing the program tries to find a matching separation character like ";", ",", "|" and so on. It is recommended to specify the separation character if known. | |
| <SkipEmpty> | 0|1; optional flag if empty strings should be automatically skipped or the subroutine should also be called for empty string parts. Default is 1 which means that empty values are skipped. | |
|
| ||