Skip to main content
Version: v6.7.0

Create-String

Command Description​

Create a specified number of characters

Command Prototype​

sRet = String(iCount,sChar)

Parameter Description​

ParameterRequiredTypeDefaultDescription
iCountTruenumber1Times of repetition
sCharTruestring" "Create Character

return​

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

Demo​

TracePrint("----------------------create string---------------------- --") 
//-------------------------------------------------------------------------------
//[Remarks] Create a certain number of characters.
//Input parameter 1:
// iCount--Number of repetitions.
//Input parameter 2:
// sChar--Character created.
//out parameters:
// sRet--The variable to which the output of the function call is saved.
//
//Command prototype: sRet=String(iCount,sChar)
//-------------------------------------------------------------------------------
sRet = String (3, "RPA")
TracePrint (sRet)