Инструменты пользователя

Инструменты сайта


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

strSource string.
delimThe separator at which the string will be split. If no delimiter was found, returns the entire string and sets ERROR to 1.
indexThe index of the part of the string. If greater than the number of split parts, returns an empty string and sets ERROR to 1.
casesenseOptional. Case-sensitive search (for a function).

Switches

/SCase-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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki