Skip to main content

Get-ASCII-Character

Command Description

Get the character of a specified ASCII code

Command Prototype

sRet = Chr(iAsc)

Parameter Description

ParameterRequiredTypeDefaultDescription
iAscTruenumber65The ASCII code to be converted to a character

return

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

Demo

TracePrint("----------------------Get the character corresponding to the specified ASCII code------------------- ------") 
//-------------------------------------------------------------------------------
//[Remarks] Get the character corresponding to the specified ASCII code.
//Input parameter 1:
// iAsc--The specified ASCII code of the character to be obtained.
//out parameters:
// sRet--The variable to which the output of the function call is saved.
//
//Command prototype: sRet=Chr(iAsc)
//-------------------------------------------------------------------------------
sRet = Chr (65)
TracePrint (sRet)