CHR$

From Macros Wiki
Jump to navigationJump to search

Up

Command

CHR$
CHR$
CHR$ <n>


Returns the character represented by the given ASCII value.

Parameters

<n>
ASCII value.

Example

B$ = CHR$(65)
B$ = CHR$(d1)
B$ = CHR$(ABS(d1*w1))

Example 2

To use special characters in dialogs and message windows, they need to be converted from ASCII codes :

! Ø = asciicode 216
diametersign$ = CHR$(216)
drilldia=10
message "Selected drill is "+diametersign$+"%drilldia mm"

Outputs 'Selected drill is Ø10 mm' to message window