Middle-Trim
Command Description
Delete a specified number of characters starting from a specified position
Command Prototype
sRet = StrCut(sData,iStart,iSize)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sData | True | string | "" | The string to be operated on |
iStart | True | number | 1 | The starting position of cutting the string |
iSize | True | number | 1 | The 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)