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

$%COMPARE^CHARACTER

Draft MDC Standard

7.1.6.4.2 $%COMPARE^CHARACTER

COMPARE^CHARACTER : INTEGER ( A : STRING , B : STRING , CHARMOD : : O )

$%COMPARE^CHARACTER compares two strings according to the specification of the collation algorithm, and returns:

–1    if A collates before B
0    if A collates the same as B
1    if A collates after B

CHARMOD is either a Character Set Profile specification in the form charset or a global variable name specification in the form ^name. If CHARMOD is a Character Set Profile then the two strings are compared using the collation algorithm specified in ^$Character for that profile. If CHARMOD is a global variable name then the two strings are compared using the collation algorithm specified in ^$Global for that name. If CHARMOD is not specified, or the node specified above does not exist, then the two strings are compared using the default process collation algorithm.

Click here for $%COMPARE^CHARACTER sample code

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.

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 13-Sep-2014, 10:15:10.

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