Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$CHAR

M[UMPS] by Example

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,

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

The information in this page is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 12-Sep-2014, 13:14:46.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)