☜ | $%COMPARE^CHARACTERDraft MDC Standard | ☞ |
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
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)