Left-Trim
Command Description
Delete specific characters from the left side of a specified string
Command Prototype
sRet = LTrim(sData,sTrim)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sData | True | string | "" | Modified string |
sTrim | True | string | "" | Enter a single character or a string of multiple characters. All combination of characters will be cropped |
return
sRet,The variable used to save the output of the command.
Demo
TracePrint("----------------------Left Crop---------------------- --")
//-------------------------------------------------------------------------------
//[Remarks] Delete the specific characters on the left side of the specified string.
//Input parameter 1:
// sData--the trimmed string.
//Input parameter 2:
// sTrim--the string to be trimmed.
//out parameters:
// sRet--The variable to which the output of the function call is saved.
//
//Command prototype: sRet=LTrim(sData,sTrim)
//-------------------------------------------------------------------------------
sRet = LTrim ("UiBot", "Ui")
TracePrint (sRet)