Skip to main content

Get-ASCII-Code

Command Description

Get the ASCII code of a specified character

Command Prototype

iRet = Asc(sChr)

Parameter Description

ParameterRequiredTypeDefaultDescription
sChrTruestring"A"The character to get ASCII code for

return

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

Demo

TracePrint("----------------------Get the ASCII code of the specified character------------------- -----") 
//-------------------------------------------------------------------------------
//[Remarks] Get the ASCII code of the specified character.
//Input parameter 1:
// sChr--The character to get the ASCII code.
//out parameters:
// iRet--The variable to which the output of the function call is saved.
//
//Command prototype: iRet=Asc(sChr)
//-------------------------------------------------------------------------------
iRet=Asc("A")
TracePrint(iRet)