AppCtrlScript

MAY Computer

Help

STRFIRSTPART

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

String

See also  

STRLASTPART, STRSTRIPFIRSTPART, STRSTRIPLASTPART, STRPART, STRPARTS

Retrieve the first part of a string considering the third parameter as separation character or separation string respectively.

Syntax

[STR]FIRSTPART <VariableName>, <Source>[, <Separator>]

Part

Description

<VariableName> Script variable where to store the result.
<Source> Source string to be splitted.
<Separator> Separation character or string. If missing the program tries to find a fitting character like |, /, \, ., ,, ; (the first of these that can be found somewhere in the string is taken).