Convert-to-Literal-Data
Command Description
Convert data type to literal (string)
Command Prototype
sRet = CStr(varData)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
varData | True | expression | $PrevResult | Data to be converted |
return
sRet,The variable used to save the output of the command.
Demo
TracePrint("---------------------------------Convert to text data--------- ----------------------------")
//-------------------------------------------------------------------------------
//[Remarks] Convert data to text (string) type
//Input parameter 1:
// varData----->target data
//out parameters:
// converted text data
TracePrint("Convert number 1 to literal type")
TracePrint("The data type before conversion is: "&Type(1))
dRet = CStr (1)
TracePrint("The converted data type is: "&type(dRet))