AppCtrlScript

MAY Computer

Help

STRREMLEADEND

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

String

See also  

REPLACE, STRREDUCE

Remove the specified string from beginning and end of a given source string. Cut's only the first occurrence from begin and end. Cut's off the string also if occurs only at the begin or only at the end.

 

Syntax

STRREMLEADEND <VariableName>, <Source>, <SearchString> 

Part

Description

<VariableName> Name of the script variable where to store the result.
<Source> Source string.
<SearchString> The string that will be removed from beginning and end of the source string.

 

Samples

STRREMLEADEND MyVar, """MyCommandLineParameter""", """"
STRREMLEADEND MyVar, "MyCommandLineParameter""", """"
STRREMLEADEND MyVar, "MyCommandLineParameter", """"
MSGBOX %SCR.MyVar%
;MyVar will be in any of the cases above: MyCommandLineParameter