Get-String-Length
Command Description
Get the length of a string in byte (the length of actually occupied space)
Command Prototype
iRet = LenB(sText)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sText | True | string | "" | The string to be operated |
return
iRet,The variable used to save the output of the command.
Demo
TracePrint("----------------------Get the length of the string in bytes------------------- -----")
//-------------------------------------------------------------------------------
//[Remarks] Get the byte length of the string (the length of the actual space occupied).
//Input parameter 1:
// sText--A string to operate on.
//out parameters:
// iRet--The variable to which the output of the function call is saved.
//
//Command prototype: iRet=LenB(sText)
//-------------------------------------------------------------------------------
iRet=LenB("UiBot")
TracePrint(iRet)