Skip to main content
Version: v6.5.0

Middle-Trim

Command Description​

Delete a specified number of characters starting from a specified position

Command Prototype​

sRet = StrCut(sData,iStart,iSize)

Parameter Description​

ParameterRequiredTypeDefaultDescription
sDataTruestring""The string to be operated on
iStartTruenumber1The starting position of cutting the string
iSizeTruenumber1The length of string to cut

return​

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

Demo​

TracePrint("----------------------Intermediate crop ----------------------- -") 
//-------------------------------------------------------------------------------
//[Remarks] Cut a certain number of characters from the specified position.
//Input parameter 1:
// sData--the string to process.
//Input parameter 2:
// iStart--The start position of the clipping string.
//Input parameter 3:
// iSize--The length of the trimmed string.
//out parameters:
// sRet--The variable to which the output of the function call is saved.
//
//Command prototype: sRet=StrCut(sData,iStart,iSize)
//-------------------------------------------------------------------------------
sRet = StrCut ("UiBot", 1.2)
TracePrint (sRet)