Skip to main content

Get-Characters

Command Description

Get the characters at the specified positions

Command Prototype

sRet = StrGetAt(sText,iPos)

Parameter Description

ParameterRequiredTypeDefaultDescription
sTextTruestring""The string to be operated on
iPosTruenumber1The position of characters to be obtained

return

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

Demo

TracePrint("----------------------Get character ----------------------- -") 
//-------------------------------------------------------------------------------
//[Remarks] Get the character at the specified position of the string.
//Input parameter 1:
// sText--the string to be processed.
//Input parameter 2:
// iPos--The position of the character to get.
//out parameters:
// sRet--The variable to which the output of the function call is saved.
//
//Command prototype: sRet=StrGetAt(sText,iPos)
//-------------------------------------------------------------------------------
sRet = StrGetAt ("UiBot", 4)
TracePrint (sRet)