Introduced in the 1977 ANSI M[UMPS] language standard.
This function returns the string that is constructed from the character codes that are specified as parameters.
Assume that X=65 and Y=66
Reference | Value | |
---|---|---|
$CHAR(X) | "A" | |
$CHAR(X,Y) | "AB" | |
$CHAR(X,Y,67) | "ABC" | |
$CHAR(X,Y,-1,67) | "ABC" | |
$CHAR(+2,-1) | control-character STX | |
$CHAR(-2) | "" (empty string) | |
$CHAR(73.75) | "I" | |
$CHAR(-1) | "" (empty string) | |
$CHAR(0) | control-character NULL | |
$CHAR("ABC") | control-character NULL |
Examples with naked references:
$CHAR(VALUE)
SET ^ABC(1,2)="reset naked indicator"
; Naked indicator is now ^ABC(1,
SET ^(3,4)=$CHAR(^(5,6))
; 1. fetch ^(5,6) = ^ABC(1,5,6)
; 2. store ^(3,4) = ^ABC(1,5,3,4)
; Naked indicator is now: ^ABC(1,5,3,
This document is © Ed de Moel, 1995-2005.
It is part of a book by Ed de Moel that is published under
the title "M[UMPS] by Example" (ISBN 0-918118-42-5).
Printed copies of the book are no longer available.