CHR

Top  Previous  Next

Action

Convert a byte, Integer/Word variable or a constant to a character.

 

 

Syntax

PRINT CHR(var)

s = CHR(var)

 

 

Remarks

Var

Byte, Integer/Word variable or numeric constant.

S

A string variable.

 

When you want to print a character to the screen or the LCD display,

you must convert it with the CHR() function.

 

 

See also

ASC

 

 

Example

Dim A As Byte

A = 65

Lcd A

Lowerline

Lcdhex A

Lcd Chr(a)

End