Skip to main content


Command Description

Delete specific characters from the left side of a specified string

Command Prototype

sRet = LTrim(sData,sTrim)

Parameter Description

sDataTruestring""Modified string
sTrimTruestring""Enter a single character or a string of multiple characters. All combination of characters will be cropped


sRet,The variable used to save the output of the command.


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)