en:autorun:documentation:strpart
StrPart
StrPart(<str>, <delim>, <index> [, <casesense>] StrPart [/S] <VAR> <str> <delim> <index>
Splits a string at the given delimiter and returns the part at the given index, starting at 1.
Parameters
str | Source string. |
delim | The separator at which the string will be split. If no delimiter was found, returns the entire string and sets ERROR to 1. |
index | The index of the part of the string. If greater than the number of split parts, returns an empty string and sets ERROR to 1. |
casesense | Optional. Case-sensitive search (for a function). |
Switches
/S | Case-sensitive search. |
Example
nDay = 3 # Wednesday sDay = StrPart("Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday" "|", nDay) # sDay = "Wednesday"
en/autorun/documentation/strpart.txt · Последнее изменение: 2022/09/26 13:07 — loopback