<< Prev        Next >>

ID : 277

Chr

Function

To return characters corresponding to the designated character code.

Syntax

Chr(character code)

Guaranteed entry

Character code
Designate a character code by integer type data.

Return value

Return string type data.

Description

Characters corresponding to the designated character code are returned.

Related Terms

Asc, SprintF, Left, Len, Mid, Right, Val, InStr, Bin

 

Attention

-

Example

'!TITLE "Conversion of ASCII Code into Character"
' Convert ASCII code 65 into character
Sub Sample_Chr

  Dim aaa As String

  ' Assign character with character code 65 to aaa
  aaa = Chr( 65 )

  ' Display "A" on the message output window
  PrintDbg aaa

End Sub

ID : 277

<< Prev        Next >>