Get-a-String-on-the-Right
Command Description
Get a string on the right
Command Prototype
sRet = Right(sText,iSize)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sText | True | string | "" | The string to be operated |
iSize | True | number | 1 | The length of string (in unit) to get |
return
sRet,The variable used to save the output of the command.
Demo
TracePrint("----------------------Get the right string-------------------- ----")
//-------------------------------------------------------------------------------
//[Remarks] Get the string on the right.
//Input parameter 1:
// sText--A string to operate on.
//Input parameter 2:
// iSize--How many units of string to get.
//out parameters:
// sRet--The variable to which the output of the function call is saved.
//
//Command prototype: sRet=Right(sText,iSize)
//-------------------------------------------------------------------------------
sRet = Right ("UiBot", 3)
TracePrint (sRet)