| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
String |
|
See also |
DIM, STRCOLLECT, FOREACHLINEINFILE, REMOVEVALS |
Split a string into several parts based on specified separation character(s). This method can be used for example to split a comma separated line of a file into single values saving them to separate script variables.
[STR]SPLIT <VariablePrefix>[, <String>][, <SepStr>][, <SkipEmpty>][, <AllUntil>]
SPLIT[STR] <VariablePrefix>[, <String>][, <SepStr>][, <SkipEmpty>][, <AllUntil>]
|
Part |
Description | |
| <VariablePrefix> | <String> will be splitted to separate variables of the style <VariablePrefix><ItemNumber>. | |
| <String> | String to be splitted. | |
| <SepStr> | Separation character or string. If missing then function guesses separation character(s) by examining the string of occurrence of separation characters. | |
| <SkipEmpty> | 0|1; if 1 then empty string parts are skipped. Default is 0. | |
| <AllUntil> |
0|1; if 1 then part2 will be part1+2, part3 will be part1+2+3 and so on. | |
|
| ||